Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
docs: build on tag and use github.ref_name for version. (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschutt committed Oct 25, 2022
1 parent 1cd8b9b commit d5733e3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/docs.yml
Expand Up @@ -2,18 +2,15 @@ name: docs

on:
push:
branches: [main]
tags: ["*"]

permissions:
contents: read

jobs:
docs:
# Force Github action to run only a single job at a time (based on the group name)
# This is to prevent race-condition in publishing a new version of doc to `gh-pages`
concurrency:
group: on-docs-rebuild
group: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -25,9 +22,6 @@ jobs:
python-version: "3.10"
- run: python -m pip install --upgrade wheel tox
- name: Build docs website and API reference
env:
VERSION: ${{inputs.version}}
ALIAS: ${{inputs.alias}}
run: |
tox -e docs -- deploy --push --update-aliases ${{env.VERSION}} ${{env.ALIAS}}
tox -e docs -- deploy --push --update-aliases ${{github.ref_name}}
tox -e docs -- set-default --push latest

0 comments on commit d5733e3

Please sign in to comment.