We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7346065 commit 69da848Copy full SHA for 69da848
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,32 @@
1
+name: Build distribution
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ test:
9
+ uses: ./.github/workflows/test.yml
10
+ deploy:
11
+ needs: [test, lint]
12
+ name: Deploy to PyPI
13
+ permissions:
14
+ id-token: write
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - name: Checkout source
18
+ uses: actions/checkout@v4
19
20
+ - name: Set up Python 3.11
21
+ uses: actions/setup-python@v5
22
+ with:
23
+ python-version: 3.11
24
+ cache: 'pip' # caching pip dependencies
25
+ - name: Install build dependencies
26
+ run: python -m pip install build twine
27
28
+ - name: Build distributions
29
+ run: python -m build
30
31
+ - name: Publish package to PyPI
32
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments