We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98038a1 commit bdd09c0Copy full SHA for bdd09c0
.github/workflows/release.yml
@@ -0,0 +1,30 @@
1
+name: Release package
2
+
3
+on:
4
+ release:
5
+ types:
6
+ - created
7
+ workflow_dispatch:
8
9
+jobs:
10
+ publish:
11
+ runs-on: ubuntu-latest
12
+ environment:
13
+ name: pypi
14
+ url: https://pypi.org/p/<your-pypi-project-name>
15
+ permissions:
16
+ id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
17
18
+ steps:
19
+ - uses: actions/checkout@v3
20
+ - name: Set up Python
21
+ uses: actions/setup-python@v3
22
+ - name: Install Python dependencies
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ python -m pip install hatch
26
+ hatch env create
27
+ - name: Build
28
+ run: hatch build
29
+ - name: Publish package distributions to PyPI
30
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments