We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8292145 + f6b2c6d commit 3b3b5a6Copy full SHA for 3b3b5a6
1 file changed
.github/workflows/release_workflow.yml
@@ -0,0 +1,38 @@
1
+# Publish release to PyPi
2
+
3
+name: Publish Release
4
5
+on:
6
+ # Trigger on release, to publish release packages to PyPI
7
+ release:
8
+ types: [published]
9
10
+ # Run the workflow manually
11
+ # This might be useful if the automated publish fails for some reason (use with CARE!!)
12
+ workflow_dispatch:
13
14
+jobs:
15
+ pypi-publish:
16
+ name: Upload release to PyPI
17
+ runs-on: ubuntu-latest
18
19
+ environment: release
20
21
+ permissions:
22
+ id-token: write
23
24
+ steps:
25
+ - uses: actions/checkout@v3
26
27
+ - uses: actions/setup-python@v4
28
+ with:
29
+ python-version: "3.x"
30
31
+ - name: deps
32
+ run: python -m pip install -U hatch
33
34
+ - name: build
35
+ run: hatch build
36
37
+ - name: Publish package distributions to PyPI
38
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments