Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
PLGuerraDesigns authored Oct 1, 2023
1 parent 6835927 commit 6e1a4ce
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,20 @@ jobs:

- name: Commit and push to published-site branch
run: |
cd build
mkdir web-deploy
cd web-deploy
git init
git config --global user.email plguerra@outlook.com
git config --global user.name plguerradesigns
git status
git remote add origin https://${{secrets.commit_secret}}@github.com/plguerradesigns/portfolio.git
git checkout -b master
cp -r build/web/* ./
git add --all
git fetch origin published
git switch published
cp -R ../web/* .
git status
git add .
echo ""
echo "Committing to published branch"
echo ""
git commit -m "Updated Release"
git push origin published -f
git push origin published

0 comments on commit 6e1a4ce

Please sign in to comment.