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 b507e79 commit beaef07
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,16 @@ jobs:
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
# Navigate to the build directory
cd client/dist
# Create a new directory for gh-pages
mkdir gh-pages
# Initialize a new Git repository in the dist directory
# 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
git init
# Add remote repository
Expand All @@ -76,4 +82,4 @@ jobs:
# Clean up
cd ..
rm -rf dist
rm -rf gh-pages

0 comments on commit beaef07

Please sign in to comment.