Skip to content

Add 2D projection output with full AMR structure #7301

Add 2D projection output with full AMR structure

Add 2D projection output with full AMR structure #7301

Workflow file for this run

name: 📖 Build and Deploy Docs
on:
push:
branches: [ development ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ development ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-docs
cancel-in-progress: true
jobs:
check_changes:
uses: ./.github/workflows/check_changes.yml
with:
workflow_file: '.github/workflows/docs.yml'
build:
runs-on: ubuntu-latest
needs: check_changes
if: needs.check_changes.outputs.has_docs_changes == 'true' || needs.check_changes.outputs.has_specific_workflow_changes == 'true'
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4.2.2
with:
persist-credentials: false
- name: Dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install pypandoc_binary
python3 -m pip install -r docs/requirements.txt
- name: Install and Build
run: |
./scripts/bash/docs_build.sh
- name: Archive artifact
shell: sh
run: |
chmod -c -R +rX "$INPUT_PATH" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
tar \
--dereference --hard-dereference \
--directory "$INPUT_PATH" \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
.
env:
INPUT_PATH: ./docs/site
- name: Upload artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: 'github-pages'
path: ${{ runner.temp }}/artifact.tar
retention-days: 1
deploy:
if: github.event_name == 'push' && github.repository == 'quokka-astro/quokka' && github.ref == 'refs/heads/development' && (needs.check_changes.outputs.has_docs_changes == 'true' || needs.check_changes.outputs.has_specific_workflow_changes == 'true')
environment:
name: github-pages
url: quokka-astro.github.io
runs-on: ubuntu-latest
needs: [build, check_changes]
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5