Skip to content

Commit

Permalink
Combining test and release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
walter-iriusrisk authored Sep 30, 2023
1 parent 3da035c commit afbbc16
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-apishell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:

publish-to-pypi:
name: Publish Python distro to PyPi
if: (!contains(github.ref, 'refs/tags/*-test'))
needs:
- build
runs-on: ubuntu-latest
Expand All @@ -60,3 +61,28 @@ jobs:
path: dist/
- name: Publish distribution to PyPi
uses: pypa/gh-action-pypi-publish@release/v1

publish-to-testpypi:
name: Publish Python distro to TestPyPi
if: contains(github.ref, 'refs/tags/*-test')
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/project/iriusrisk-apishell-v1/

permissions:
id-token: write

steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution to TestPyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit afbbc16

Please sign in to comment.