Update update-site.yml

This commit is contained in:
streetturtle 2022-01-23 14:57:13 -05:00 committed by GitHub
parent 7f36b419b5
commit 7240c1a775
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 2 deletions

View File

@ -9,5 +9,18 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Rename readme file - name: Rename readme files
run: ./scripts/update_site.sh run: |
./scripts/update_site.sh
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git add ./_widgets
git commit -m "update from master"
git fetch
git checkout gh-pages
git merge master
git checkout master
git reset --hard HEAD~3 # Go back 3 commits. You *will* lose uncommitted work.
git checkout gh-pages
git push origin gh-pages