Skip to content

Fix alarm actions (#59) #6

Fix alarm actions (#59)

Fix alarm actions (#59) #6

Workflow file for this run

---
name: merge-main
concurrency:
group: merge-main
cancel-in-progress: true
on:
push:
branches:
- main
permissions:
contents: read
jobs:
# Build the documentation and publish to Github Pages
publish-docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Build docs
shell: bash
run: |
# Install dependencies and build the HTML docs
pip install .[dev]
cd docs
make clean html
# Move the build files into a location where we can compile multiple build outputs
mkdir -p compiled_html/dark
cp -r _build/html/* compiled_html/
# Build again with the dark theme
TBPULUMI_DARK_MODE=yes make clean html
# Move the dark theme files into a special directory
cp -r _build/html/* compiled_html/dark/
# Compress for archival
cd compiled_html
tar -cvjf ../../docs.tbz ./*
- name: Archive docs
id: archive
uses: actions/upload-artifact@v4
with:
name: docs
path: docs.tbz
# This publishes the built docs into a special git branch which we tell Github to use with Github Pages
- name: Publish docs
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages # this is the default, but let's be explicit
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/compiled_html/
force_orphan: true