Commit 5ae6f94 1 parent 11f6a42 commit 5ae6f94 Copy full SHA for 5ae6f94
File tree 1 file changed +12
-37
lines changed
1 file changed +12
-37
lines changed Original file line number Diff line number Diff line change 1
1
on :
2
- workflow_dispatch :
3
2
release :
4
3
types :
5
4
- published
6
-
7
5
name : Release
8
-
9
6
jobs :
10
-
11
- sdist :
12
- name : Creating source release & pure wheel
13
-
14
- runs-on : ubuntu-latest
15
-
16
- steps :
17
- - uses : actions/checkout@v2
18
-
19
- - name : Set up Python
20
- uses : actions/setup-python@v1
21
- with :
22
- python-version : 3.8
23
-
24
- - name : Install Poetry
25
- uses : snok/install-poetry@v1
26
-
27
- - name : Installing
28
- run : poetry install --no-interaction
29
-
30
- - name : Building documentation
31
- run : |
32
- cd docs && poetry run make clean && poetry run make html
33
-
34
- - name : Publishing documentation
35
- run : |
36
- poetry run ghp-import -f -n -p docs/_build/html
37
-
38
- - name : Publishing
39
- env :
40
- PYPI_TOKEN : ${{ secrets.PYPI_PASSWORD }}
41
- run : |
42
- poetry config pypi-token.pypi $PYPI_TOKEN
43
- poetry publish --build
7
+ build :
8
+ permissions :
9
+ id-token : write
10
+ pages : write
11
+ uses : tktech/python-standard/.github/workflows/release.yml@v1
12
+ with :
13
+ use_poetry : true
14
+ use_sphinx : true
15
+ python_version : ' 3.11'
16
+ platform : ' ubuntu-latest'
17
+ secrets :
18
+ PYPI_TOKEN : ${{ secrets.PYPI_PASSWORD }}
You can’t perform that action at this time.
0 commit comments