We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4418af commit fe3f118Copy full SHA for fe3f118
1 file changed
.github/workflows/publish_to_test_pypi.yml
@@ -0,0 +1,29 @@
1
+name: Publish a release to PyPI
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - "test-v*.*.*"
7
8
+jobs:
9
+ # the tests must pass before release is to be made
10
+ test:
11
+ name: Run unit tests on release branch
12
+ uses: ./.github/workflows/test_on_branch.yml
13
+ with:
14
+ branch: release
15
+ os: ubuntu-22.04
16
17
+ # then we build to prep for release
18
+ build:
19
+ name: Build and publish the package to pypi
20
+ needs: test
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - name: Build and publish to pypi
24
+ uses: JRubics/poetry-publish@v2.1
25
26
+ python_version: "3.10"
27
+ poetry_version: "==1.6.1" # (PIP version specifier syntax)
28
+ pypi_token: ${{ secrets.PYPI_TOKEN }}
29
+ repository_name: "testpypi"
0 commit comments