update github action

This commit is contained in:
bckelley
2024-11-01 10:18:54 -05:00
parent cace70697f
commit 34045848c1
+4 -4
View File
@@ -1,10 +1,8 @@
name: Deploy to GitHub Pages
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
@@ -18,10 +16,12 @@ jobs:
git config user.email "${{ secrets.GITHUB_ACTOR }}"
- name: Build website
run: npm run deploy
- name: Commit and push to deploy branch
- name: Commit and push to main branch
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git add -A
git commit -m "Deploy to GitHub Pages"
git push origin HEAD:deploy
git push origin HEAD:main \
--user ${{ secrets.GITHUB_ACTOR }} \
--password ${{ secrets.GITHUB_TOKEN }}