We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca8de6a + 4c61d99 commit 4570638Copy full SHA for 4570638
.github/workflows/release.yaml
@@ -0,0 +1,34 @@
1
+name: Release Package
2
+
3
+on: [workflow_dispatch]
4
5
+permissions:
6
+ contents: read
7
8
+jobs:
9
+ build_package:
10
+ name: Build Package
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v3
14
+ - name: Build sdist and wheel
15
+ run: pipx run build --sdist --wheel
16
+ - uses: actions/upload-artifact@v3
17
+ with:
18
+ path: dist
19
20
+ pypi-publish:
21
+ needs: [build_package]
22
+ name: Upload release to PyPI
23
24
+ environment:
25
+ name: pypi
26
+ permissions:
27
+ id-token: write
28
29
+ - uses: actions/download-artifact@v3
30
31
+ name: artifact
32
33
+ - name: Publish package distributions to PyPI
34
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments