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.
1 parent 187ffc2 commit 903ff74Copy full SHA for 903ff74
.github/workflows/publish.yml
@@ -0,0 +1,39 @@
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
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - uses: actions/checkout@v4
17
18
+ - name: Set up Python
19
+ uses: actions/setup-python@v3
20
+ with:
21
+ python-version: '3.x'
22
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ pip install build
27
+ pip install black
28
29
+ - name: Run black
30
+ run: black .
31
32
+ - name: Build package
33
+ run: python -m build
34
35
+ - name: Publish package
36
+ uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
37
38
+ user: __token__
39
+ password: ${{ secrets.PYPI_API_TOKEN }}
0 commit comments