Skip to content

Commit 5ae6f94

Browse files
committed
"Standardized" release workflow
1 parent 11f6a42 commit 5ae6f94

File tree

1 file changed

+12
-37
lines changed

1 file changed

+12
-37
lines changed

.github/workflows/release.yml

+12-37
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,18 @@
11
on:
2-
workflow_dispatch:
32
release:
43
types:
54
- published
6-
75
name: Release
8-
96
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 }}

0 commit comments

Comments
 (0)