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 3dbb53e + 850f5c7 commit aef2801Copy full SHA for aef2801
.github/workflows/deploy.yml
@@ -0,0 +1,31 @@
1
+name: deploy
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v[0-9]+.[0-9]+.[0-9]+'
7
8
+jobs:
9
+ test-job:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Check out repository code
13
+ uses: actions/checkout@v2
14
+ - name: Install Python
15
+ uses: actions/setup-python@v4
16
+ with:
17
+ python-version: '3.10'
18
+ - name: Install dependencies
19
+ run: |
20
+ python -m pip install twine build
21
+ python -m pip install -e .
22
+ - name: Build package
23
24
+ python -m build
25
+ python -m twine check dist/*
26
+ - name: Upload package to PyPI
27
28
+ python -m twine upload -r testpypi dist/* --verbose
29
+ env:
30
+ TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
31
+ TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
0 commit comments