Skip to content

Commit

Permalink
Add domain to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
alan890104 committed Mar 5, 2024
1 parent e1ed7d9 commit ea98980
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: yarn install && yarn build && cp ./dist/index.html ./dist/404.html
- run: yarn install && yarn build && cp ./dist/index.html ./dist/404.html && yarn add-domain

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"add-domain": "cat CNAME > dist/CNAME"
},
"dependencies": {
"@radix-ui/react-icons": "^1.3.0",
Expand Down

0 comments on commit ea98980

Please sign in to comment.