@@ -16,37 +16,40 @@ jobs:
1616 runs-on: ubuntu-latest
1717 if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
1818 steps:
19- - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
20- - uses: actions-ext/python/setup@main
21-
22- - name: Download dist from build
23- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
24- with:
25- pattern: dist-ubuntu-latest*
26- merge-multiple: true
27- path: dist
28- run-id: ${{ github.event.workflow_run.id }}
29- github-token: ${{ secrets.GITHUB_TOKEN }}
30- repository: ${{ github.repository }}
31- if: github.event_name == 'workflow_run'
32-
33- - name: Install from wheel
34- run: |
35- uv pip install dist/*.whl
36- uv pip install dist/*.whl --target . --no-deps
37- uv pip install yardang
38- if: github.event_name == 'workflow_run'
39-
40- - name: Install from source (manual trigger)
41- run: |
42- uv pip install .[develop]
43- uv pip install yardang
44- if: github.event_name == 'workflow_dispatch'
45-
46- - run: yardang build
47-
48- - uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
49- with:
50- publish_branch: gh-pages
51- github_token: ${{ secrets.GITHUB_TOKEN }}
52- publish_dir: docs/html
19+ - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
20+ with:
21+ persist-credentials: false
22+
23+ - uses: actions-ext/python/setup@4567028b4cf2be3739404cfd3521f0b9df98b6b1
24+
25+ - name: Download dist from build
26+ uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8
27+ with:
28+ pattern: dist-ubuntu-latest*
29+ merge-multiple: true
30+ path: dist
31+ run-id: ${{ github.event.workflow_run.id }}
32+ github-token: ${{ secrets.GITHUB_TOKEN }}
33+ repository: ${{ github.repository }}
34+ if: github.event_name == 'workflow_run'
35+
36+ - name: Install from wheel
37+ run: |
38+ uv pip install dist/*.whl
39+ uv pip install dist/*.whl --target . --no-deps
40+ uv pip install yardang
41+ if: github.event_name == 'workflow_run'
42+
43+ - name: Install from source (manual trigger)
44+ run: |
45+ uv pip install .[develop]
46+ uv pip install yardang
47+ if: github.event_name == 'workflow_dispatch'
48+
49+ - run: yardang build
50+
51+ - uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
52+ with:
53+ publish_branch: gh-pages
54+ github_token: ${{ secrets.GITHUB_TOKEN }}
55+ publish_dir: docs/html
0 commit comments