Skip to content

Commit 720bf0c

Browse files
committed
ci: use shared publish-docs workflow
Replace the inline documentation publishing job with a call to the reusable workflow provided by stm32duino/actions. Drop requirements-docs.txt as the documentation tool versions are now pinned in the shared workflow. Signed-off-by: Frederic Pillon <frederic.pillon@st.com> Assisted-by: GitHub Copilot:claude-sonnet-5.5
1 parent 4b9bbeb commit 720bf0c

2 files changed

Lines changed: 1 addition & 44 deletions

File tree

‎.github/workflows/publish-docs.yml‎

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -11,47 +11,6 @@ on:
1111
permissions:
1212
contents: write
1313

14-
concurrency:
15-
group: publish-docs
16-
cancel-in-progress: false
17-
1814
jobs:
1915
publish:
20-
runs-on: ubuntu-latest
21-
steps:
22-
- uses: actions/checkout@v4
23-
with:
24-
fetch-depth: 0
25-
- uses: actions/setup-python@v5
26-
with:
27-
python-version: "3.x"
28-
- name: Install Doxygen and Graphviz
29-
run: sudo apt-get update && sudo apt-get install --yes doxygen graphviz
30-
- run: python -m pip install -r requirements-docs.txt
31-
- run: doxygen Doxyfile
32-
- name: Configure Git author
33-
run: |
34-
git config user.name "github-actions[bot]"
35-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
36-
- name: Publish development documentation
37-
if: github.ref == 'refs/heads/main'
38-
run: |
39-
mike deploy --push dev
40-
# Until a release creates "latest", the site root must redirect to dev.
41-
mike list latest > /dev/null 2>&1 || mike set-default --push dev
42-
- name: Publish release documentation
43-
if: startsWith(github.ref, 'refs/tags/')
44-
env:
45-
VERSION: ${{ github.ref_name }}
46-
run: |
47-
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
48-
echo "Unsupported documentation release tag: $VERSION" >&2
49-
exit 1
50-
fi
51-
latest=$(git tag --list | sort -V | tail -n 1)
52-
if [[ "$VERSION" == "$latest" ]]; then
53-
mike deploy --update-aliases --push "$VERSION" latest
54-
mike set-default --push latest
55-
else
56-
mike deploy --push "$VERSION"
57-
fi
16+
uses: stm32duino/actions/.github/workflows/publish-library-docs.yml@main

‎requirements-docs.txt‎

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)