build_docs.yml (426B)
1 on: push 2 name: Build and deploy GH Pages 3 jobs: 4 build: 5 runs-on: ubuntu-latest 6 if: github.ref == 'refs/heads/main' 7 steps: 8 - name: checkout 9 uses: actions/checkout@v3.0.0 10 - name: build_and_deploy 11 uses: shalzz/zola-deploy-action@v0.16.1 12 env: 13 BUILD_DIR: documentation 14 # Target branch 15 PAGES_BRANCH: gh-pages 16 TOKEN: ${{ secrets.GITHUB_TOKEN }}