Skip to content

v0.1.4

v0.1.4 #10

# Create documentation for stable (latest version) and deploy
name: BuildDeployStableDocs
on:
# Runs when creating a new release
release:
types: [created]
# 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: write
pages: write
deployments: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "get tags"
run: |
git fetch --tags --force # Retrieve annotated tags.
- name: Get tags
run: git fetch --tags origin
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: "3.11"
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true
activate-environment: dascore
environment-file: environment.yml
condarc-file: .github/test_condarc.yml
- name: install dascore with docbuild reqs
shell: bash -l {0}
run: |
conda install -c conda-forge pandoc
python -m pip install -e .[docs]
- name: Install quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.3.450
tinytex: true
- name: print quarto version
run: |
quarto --version
- name: Render Quarto Project
shell: bash -l {0}
run: |
python scripts/build_api_docs.py
quarto render docs
- name: Setup Pages
uses: actions/configure-pages@v2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: 'docs/_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
- name: Zip doc build
run: zip docs.zip docs/_site -r
- name: Upload release docs
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: docs.zip