diff options
Diffstat (limited to '.github/workflows')
-rwxr-xr-x | .github/workflows/update-site.yml | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/.github/workflows/update-site.yml b/.github/workflows/update-site.yml index 5cb4ae3..7415c2e 100755 --- a/.github/workflows/update-site.yml +++ b/.github/workflows/update-site.yml @@ -1,6 +1,14 @@ name: update site -on: workflow_dispatch +on: + push: + branches: + - 'master' + paths: + - '**/README.md' + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: jobs: build: @@ -17,19 +25,19 @@ jobs: git config --global user.name 'GitHub Action' git config --global user.email 'action@github.com' git add ./_widgets - git add ./assets/img + git add ./assets/img/widgets git stash git fetch echo "git checkout gh-pages" git checkout gh-pages rm -rf ./_widgets - rm -rf ./assets/img + rm -rf ./assets/img/widgets ls -alF echo "git stash pop" git checkout stash -- ./_widgets - git checkout stash -- ./assets + git checkout stash -- ./assets/img/widgets git add ./_widgets - git add ./assets/img + git add ./assets/img/widgets git commit -m "update from master" git push origin gh-pages |