File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ main ]
6
6
pull_request :
7
7
branches : [ main ]
8
-
8
+ # Allows you to run this workflow manually from the Actions tab
9
+ workflow_dispatch :
9
10
10
11
jobs :
11
12
build :
14
15
strategy :
15
16
matrix :
16
17
python-version : ['3.9', '3.11', '3.12']
17
-
18
18
steps :
19
19
- uses : actions/checkout@v4
20
20
- name : Install uv and set the python version
Original file line number Diff line number Diff line change @@ -10,10 +10,11 @@ jobs:
10
10
build :
11
11
name : Create Release
12
12
runs-on : ubuntu-latest
13
- # Specifying a GitHub environment is optional, but strongly encouraged
14
13
environment : pypi
15
- # IMPORTANT: this permission is mandatory for Trusted Publishing
14
+ # IMPORTANT: this permission is mandatory for Trusted Publishing and deployment to GitHub Pages
16
15
permissions :
16
+ contents : read
17
+ pages : write
17
18
id-token : write
18
19
strategy :
19
20
matrix :
@@ -23,22 +24,15 @@ jobs:
23
24
uses : actions/checkout@v4
24
25
with :
25
26
fetch-depth : 0
26
- - name : Set up Python ${{ matrix.python-version }}
27
- uses : actions/setup-python@v5
28
- with :
29
- python-version : ${{ matrix.python-version }}
30
- - name : Install uv
27
+ - name : Install uv and set up python ${{ matrix.python-version }}
31
28
uses : astral-sh/setup-uv@v5
32
29
with :
33
- version : " 0.5.18"
30
+ version : " 0.5.18"
31
+ python-version : ${{ matrix.python-version }}
34
32
- name : Install dependencies
35
33
run : make install
36
34
- name : Build and publish to pypi
37
35
run : uv run poe publish
38
- - name : Build and publish Documentation
39
- run : |
40
- uv run poe docs
41
- uv run poe docs-publish
42
36
- name : Create Release
43
37
id : create_release
44
38
uses : actions/create-release@v1
49
43
release_name : Release ${{ github.ref }}
50
44
draft : false
51
45
prerelease : false
46
+ - name : Build and publish Documentation
47
+ run : |
48
+ uv run poe docs
49
+ uv run poe docs-publish
You can’t perform that action at this time.
0 commit comments