diff options
author | streetturtle <streetturtle@users.noreply.github.com> | 2022-01-23 15:06:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-23 15:06:31 -0500 |
commit | a327834155b6c862c3960f1de1fe4095ea609136 (patch) | |
tree | 26f9542ae51da8ae6e570a1d0aa9122bdb398f1e | |
parent | 7240c1a775739e012f8ec730a81bdcf334e01f96 (diff) |
Update update-site.yml
-rwxr-xr-x | .github/workflows/update-site.yml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/.github/workflows/update-site.yml b/.github/workflows/update-site.yml index e7e8b09..000efe5 100755 --- a/.github/workflows/update-site.yml +++ b/.github/workflows/update-site.yml @@ -9,18 +9,18 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Rename readme files - run: | - ./scripts/update_site.sh + - name: Generate md + run: ./scripts/update_site.sh + + - name: Push to gh-pages branch + run: | git config --global user.name 'GitHub Action' git config --global user.email 'action@github.com' + git stash + git checkout gh-pages + rm -rf ./_widgets + git stash pop 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 |