We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7f5e33 commit 233e701Copy full SHA for 233e701
.github/workflows/python-publish.yml
@@ -0,0 +1,33 @@
1
+name: Upload Python Package
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+permissions:
8
+ contents: read
9
10
+jobs:
11
+ deploy:
12
+ environment:
13
+ name: pypi
14
+ url: https://pypi.org/p/hgq2
15
+ runs-on: ubuntu-latest
16
+ permissions:
17
+ id-token: write
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+ with:
21
+ fetch-depth: 0
22
+ - name: Set up Python
23
+ uses: actions/setup-python@v3
24
25
+ python-version: "3.11"
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install build
30
+ - name: Build package
31
+ run: python -m build
32
+ - name: Publish package
33
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments