Skip to content

Commit

Permalink
🐳 chore(deploy): update deployment workflow to build project before d…
Browse files Browse the repository at this point in the history
…eploying to GitHub Pages
  • Loading branch information
Gavin-OP committed Nov 9, 2024
1 parent 215431e commit 711ba54
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ jobs:
- name: Install dependencies
run: npm install

- name: Configure Git
run: |
git config --global user.name "Gavin-OP"
git config --global user.email "[email protected]"
- name: Build and Deploy to GitHub Pages
run: npm run deploy
- name: Build project
env:
REACT_APP_GITHUB_TOKEN: ${{ secrets.REACT_APP_GITHUB_TOKEN}}
CI: false
REACT_APP_GITHUB_TOKEN: ${{ secrets.REACT_APP_GITHUB_TOKEN }}
run: npm run build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build

0 comments on commit 711ba54

Please sign in to comment.