mirror of
https://github.com/bckelley/terminal-portfolio.git
synced 2026-08-24 03:24:13 -05:00
update github action
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user