Workshop Report #41
Workflow file for this run
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: Build and Deploy Quarto Site | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
container: eco4cast/rocker-neon4cast:latest | |
steps: | |
- run: git config --global --add safe.directory /__w/efi-ci-workshop-2024/efi-ci-workshop-2024 | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
ref: main | |
fetch-depth: 0 | |
set-safe-directory: '*' | |
- name: Set up Quarto | |
uses: quarto-dev/quarto-actions/setup@v2 | |
with: | |
version: 1.4.146 | |
- name: Render | |
run: | | |
quarto render | |
- name: Publish | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git checkout gh-pages | |
cp -r docs/* . | |
git add . | |
git commit -a -m "update pages" || echo "nothing to commit" | |
git push https://${GITHUB_PAT}:${GITHUB_PAT}@github.com/${GITHUB_REPOSITORY} | |