Skip to content

Improve documentation for sessions and serving files #57

Improve documentation for sessions and serving files

Improve documentation for sessions and serving files #57

Workflow file for this run

name: Main
on:
workflow_dispatch:
inputs:
publish_artifacts:
description: "Publish artifacts (Y|N)"
required: true
default: "N"
release:
types: [published]
push:
branches:
- main
- dev
paths-ignore:
- README.md
pull_request:
branches:
- "*"
paths-ignore:
- README.md
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.13"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: false
- name: Use Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install -U pip
pip install -r requirements.txt
- name: Build and pack docs
run: |
./pack.sh
- name: Upload distribution package
uses: actions/upload-artifact@v4
with:
name: site
path: site.zip
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./site
publish:
if: github.ref == 'refs/heads/main' || (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_artifacts == 'Y')
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4