Skip to content

Commit fe3f118

Browse files
committed
Test publish
1 parent b4418af commit fe3f118

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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

Comments
 (0)