-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path{% if add_docs %}docs.yaml{% endif %}.jinja
More file actions
49 lines (41 loc) · 1.31 KB
/
{% if add_docs %}docs.yaml{% endif %}.jinja
File metadata and controls
49 lines (41 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Publish Docs
on:
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
workflow_dispatch:
permissions:
actions: read
contents: write
jobs:
docs:
runs-on: ubuntu-latest
if: {% raw %}${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}{% endraw %}
steps:
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- name: Download dist from build
uses: actions/download-artifact@v7
with:
name: dist-ubuntu-latest-{{python_version_primary}}
path: dist
run-id: {% raw %}${{ github.event.workflow_run.id }}{% endraw %}
if: github.event_name == 'workflow_run'
- name: Install from wheel
run: |
uv pip install dist/*.whl
uv pip install yardang
if: github.event_name == 'workflow_run'
- name: Install from source (manual trigger)
run: |
make develop
uv pip install .
uv pip install yardang
if: github.event_name == 'workflow_dispatch'
- run: yardang build
- uses: peaceiris/actions-gh-pages@v4
with:
publish_branch: gh-pages
github_token: {% raw %}${{ secrets.GITHUB_TOKEN }}{% endraw %}
publish_dir: docs/html