diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 000000000..2cd2a64e8 --- /dev/null +++ b/.github/workflows/action.yml @@ -0,0 +1,17 @@ +# On every push this script is executed +on: push +name: Build and deploy GH Pages +jobs: + build: + runs-on: ubuntu-latest + if: github.ref == 'refs/heads/development' + steps: + - name: checkout + uses: actions/checkout@v2 + - name: build_and_deploy + uses: shalzz/zola-deploy-action@v0.14.1 + env: + # Target branch + PAGES_BRANCH: gh-pages + # Provide personal access token + TOKEN: ${{ secrets.TOKEN }}