Skip to content

Small simplification to progress monitoring within plot_njt (#643) #34

Small simplification to progress monitoring within plot_njt (#643)

Small simplification to progress monitoring within plot_njt (#643) #34

Workflow file for this run

name: tagged_docs
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
tagged_docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# Remove the prefix "refs/*/" from $GITHUB_REF to get the tag
# Add var assignment to the $GITHUB_ENV file, so VERSION_TAG is available in later steps
- name: Set VERSION_TAG env var ⚙️
run: echo "VERSION_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Eyeball VERSION_TAG env var 👀
run: |
echo "$VERSION_TAG"
echo ${{ env.VERSION_TAG }}
- name: Check out VERSION_TAG 🛒
uses: actions/checkout@v4
with:
ref: ${{ env.VERSION_TAG }}
- name: Set up Python 🐍
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install poetry
run: pipx install poetry==1.8.3
- name: Eyeball native environment 👀
run: python --version ; pip --version ; poetry --version ; pwd ; ls -la
- name: Install package dependencies 📜
run: poetry install
- name: Build HTML 🏗️
run: poetry run sphinx-build -b html docs/source docs/build/html
- name: Deploy HTML to GitHub Pages 🚀
uses: peaceiris/[email protected]
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html
destination_dir: ${{ env.VERSION_TAG }}