1515 - name : Set up Python
1616 uses : actions/setup-python@v5
1717 with :
18- python-version : 3.12
18+ python-version : " 3.12"
1919
2020 - name : Install uv
2121 uses : astral-sh/setup-uv@v5
@@ -38,33 +38,32 @@ jobs:
3838 needs : packages
3939 runs-on : ubuntu-latest
4040 steps :
41- - uses : actions/checkout@v4
42-
43- - uses : actions/setup-python@v5
44- with :
45- python-version : ' 3.12'
41+ - uses : actions/checkout@v4
4642
47- - name : Install uv
48- uses : astral-sh/setup-uv@v5
49- with :
50- enable-cache : true
43+ - uses : actions/setup-python@v5
44+ with :
45+ python-version : " 3.12"
5146
52- - name : Generate docs
53- run : make install generate-docs
47+ - name : Install uv
48+ uses : astral-sh/setup-uv@v5
49+ with :
50+ enable-cache : true
5451
55- - name : Publish RC docs
56- if : contains(github.event.release.tag_name, '-rc')
57- uses : peaceiris/actions-gh-pages@v4
58- with :
59- github_token : ${{ secrets.GITHUB_TOKEN }}
60- publish_dir : ./docs
61- # this puts the docs for this tag under gh-pages:/rc/<tag>/
62- destination_dir : rc/${{ github.event.release.tag_name }}
52+ - name : Generate docs
53+ run : make install generate-docs
6354
55+ - name : Publish RC docs
56+ if : contains(github.event.release.tag_name, '-rc')
57+ uses : peaceiris/actions-gh-pages@v4
58+ with :
59+ github_token : ${{ secrets.GITHUB_TOKEN }}
60+ publish_dir : ./docs
61+ # this puts the docs for this tag under gh-pages:/rc/<tag>/
62+ destination_dir : rc/${{ github.event.release.tag_name }}
6463
65- - name : Publish release docs
66- if : ${{ ! contains(github.event.release.tag_name, '-rc') }}
67- uses : peaceiris/actions-gh-pages@v4
68- with :
69- github_token : ${{ secrets.GITHUB_TOKEN }}
70- publish_dir : ./docs
64+ - name : Publish release docs
65+ if : ${{ ! contains(github.event.release.tag_name, '-rc') }}
66+ uses : peaceiris/actions-gh-pages@v4
67+ with :
68+ github_token : ${{ secrets.GITHUB_TOKEN }}
69+ publish_dir : ./docs
0 commit comments