Threads not processes #289
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Documentation tests | |
# NOTE(mikal): git repos are checked out to /srv/github/_work/{repo}/{repo} | |
# which is available as GITHUB_WORKSPACE. You can find other environment | |
# variables at https://docs.github.com/en/actions/learn-github-actions/environment-variables | |
on: | |
pull_request: | |
branches: | |
- develop | |
- v*-releases | |
paths: | |
- 'docs/**' | |
- mkdocs.yml | |
jobs: | |
build-docs: | |
runs-on: [self-hosted, vm] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-lint | |
cancel-in-progress: true | |
steps: | |
- name: Checkout code with two commits | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Ensure the docs build | |
run: | | |
cd ${GITHUB_WORKSPACE}/shakenfist | |
mkdir -p /srv/github/artifacts/site | |
/usr/bin/tox -edocs -- --site-dir /srv/github/artifacts/site | tee /srv/github/artifacts/site/build.log | |
cd /srv/github/artifacts/ | |
zip -r /srv/github/artifacts/site.zip site | |
- uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: site | |
retention-days: 90 | |
if-no-files-found: error | |
path: /srv/github/artifacts/site.zip |