Merge pull request #40 from lapix-ufsc/pre-commit-ci-update-config #63
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
name: Generate docs and deploy to GitHub Pages | |
on: | |
push: | |
branches: 'main' | |
workflow_dispatch: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install quarto (doc builder) | |
run: | | |
curl -LO https://www.quarto.org/download/latest/quarto-linux-amd64.deb | |
sudo dpkg -i *64.deb && rm *64.deb | |
shell: bash | |
- run: quarto render tutorials | |
shell: bash | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force_orphan: true | |
publish_dir: ./tutorials/docs | |
user_name: github-actions[bot] | |
user_email: 41898282+github-actions[bot]@users.noreply.github.com |