diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8c96d0..0399b1e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,22 @@ -name: Publish +name: Publish Python Package on: release: types: [published] + push: jobs: - call_synodic_workflow: - uses: synodic-software/.github/.github/workflows/publish.yml@stable + publish_development: + if: github.event_name == 'push' + steps: + - uses: synodic-software/.github/.github/workflows/python-publish.yml@stable + with: + repository_url: https://test.pypi.org/ + token: ${{ secrets.TEST_PYPI_API_TOKEN }} + + publish_release: + if: github.event_name == 'release' && github.event.action == 'published' + steps: + - uses: synodic-software/.github/.github/workflows/python-publish.yml@stable + with: + repository_url: https://pypi.org/ + token: ${{ secrets.PYPI_API_TOKEN }}