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 name: Deploy to GitHub Pages
on: on:
push: push:
branches: branches:
- main - main
jobs: jobs:
build-and-deploy: build-and-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -18,10 +16,12 @@ jobs:
git config user.email "${{ secrets.GITHUB_ACTOR }}" git config user.email "${{ secrets.GITHUB_ACTOR }}"
- name: Build website - name: Build website
run: npm run deploy run: npm run deploy
- name: Commit and push to deploy branch - name: Commit and push to main branch
run: | run: |
git config user.name "GitHub Actions" git config user.name "GitHub Actions"
git config user.email "actions@github.com" git config user.email "actions@github.com"
git add -A git add -A
git commit -m "Deploy to GitHub Pages" 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 }}