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 beaef07 commit 9990613
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,10 @@ jobs:
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
# Create a new directory for gh-pages
mkdir gh-pages
# Navigate to the build output directory
cd client/dist
# Copy build files to the gh-pages directory
cp -r client/dist/* gh-pages/
# Navigate to the gh-pages directory
cd gh-pages
# Initialize a new Git repository
# Initialize a new Git repository in the dist directory
git init
# Add remote repository
Expand All @@ -79,7 +73,3 @@ jobs:
# Force push to the gh-pages branch
git push --force origin gh-pages
# Clean up
cd ..
rm -rf gh-pages

0 comments on commit 9990613

Please sign in to comment.