Merge pull request #271 from sacridini/patch-1 #970
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
[main] | |
name: Render | |
jobs: | |
bookdown: | |
name: GH-Pages | |
runs-on: ubuntu-latest | |
container: ghcr.io/geocompx/docker:python | |
defaults: | |
run: | |
shell: bash -l {0} | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Render | |
run: | | |
quarto render | |
ls docs | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs | |
publish_branch: gh-pages | |
commit_message: 'Deploy commit: ${{ github.event.head_commit.message }}' |