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
|
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user