Skip to content

Commit

Permalink
change: deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
1834423612 committed Jun 3, 2024
1 parent 231c9ef commit a4a48d2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ jobs:
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
echo "Creating temporary directory"
mkdir temp-deploy
cp -r dist/* temp-deploy/
echo "Fetching all branches"
git fetch origin
Expand All @@ -49,20 +45,24 @@ jobs:
echo "Cleaning old files"
git rm -rf .
echo "Cleaning up deployment artifacts"
rm -rf temp-deploy
rm -rf dist
rm -rf node_modules
echo "Copying build files to webpage branch"
cp -r temp-deploy/* .
echo "Cleaning up unnecessary files before committing"
git rm -rf node_modules/ dist/ temp-deploy/
echo "Committing changes"
git add .
git commit -m "Deploy to HTML Web Pages"
echo "Pushing to webpage branch"
git push origin webpage --force
echo "Cleaning up"
rm -rf temp-deploy
rm -rf dist
rm -rf node_modules
- name: Check git status
run: git status

0 comments on commit a4a48d2

Please sign in to comment.