Skip to content

Commit

Permalink
Update static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinWu0403 authored Jul 18, 2024
1 parent cb1b98b commit e4dddd4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,20 @@ jobs:
- name: Build project
run: |
cd client
mkdir -p dist
npm run build
- name: Deploy to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Navigate to the build output directory
cd dist
# Configure git
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
# Navigate to the build output directory
cd dist
# Initialize a new Git repository in the dist directory
git init
Expand Down

0 comments on commit e4dddd4

Please sign in to comment.