-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (55 loc) · 1.53 KB
/
docs.yaml
File metadata and controls
62 lines (55 loc) · 1.53 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
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Docs
on:
<<<<<<< before updating
push:
branches: ["main"]
tags: ["v*"]
=======
workflow_run:
workflows: ["Build Status"]
branches: [main]
types: [completed]
>>>>>>> after updating
workflow_dispatch:
permissions:
<<<<<<< before updating
contents: write
=======
actions: read
contents: write
>>>>>>> after updating
jobs:
docs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
<<<<<<< before updating
- uses: actions-ext/yardang@main
=======
- uses: actions/checkout@v6
- uses: actions-ext/python/setup@main
- name: Download dist from build
uses: actions/download-artifact@v7
with:
pattern: dist-ubuntu-latest*
merge-multiple: true
path: dist
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
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: |
uv pip install .[develop]
uv pip install yardang
if: github.event_name == 'workflow_dispatch'
- run: yardang build
- uses: peaceiris/actions-gh-pages@v4
>>>>>>> after updating
with:
token: ${{ secrets.GITHUB_TOKEN }}