diff options
author | Augusto Gunsch <55068932+augustogunsch@users.noreply.github.com> | 2022-01-23 21:38:19 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-23 21:38:19 -0300 |
commit | f7d7b3e6f79f8216028fcf12b111b029b4cbdfcf (patch) | |
tree | 0617616d84259d3eedc3f26b3a1cf8ebf56b0b07 /.github/workflows/update-site.yml | |
parent | 3e9f130450951fdb86d0f37b0994f77af323f3ce (diff) | |
parent | 4066f673dbda4a733ac6d838bf04bff8682265c3 (diff) |
Merge branch 'streetturtle:master' into master
Diffstat (limited to '.github/workflows/update-site.yml')
-rwxr-xr-x | .github/workflows/update-site.yml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/update-site.yml b/.github/workflows/update-site.yml new file mode 100755 index 0000000..5cb4ae3 --- /dev/null +++ b/.github/workflows/update-site.yml @@ -0,0 +1,35 @@ +name: update site + +on: workflow_dispatch + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - 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 add ./_widgets + git add ./assets/img + git stash + git fetch + echo "git checkout gh-pages" + git checkout gh-pages + rm -rf ./_widgets + rm -rf ./assets/img + ls -alF + echo "git stash pop" + git checkout stash -- ./_widgets + git checkout stash -- ./assets + git add ./_widgets + git add ./assets/img + git commit -m "update from master" + git push origin gh-pages + |