Skip to content

Commit 5657085

Browse files
authored
Update Release Workflow (#20)
1 parent 6970baa commit 5657085

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1-
name: Publish
1+
name: Publish Python Package
22
on:
33
release:
44
types: [published]
5+
push:
56

67
jobs:
7-
call_synodic_workflow:
8-
uses: synodic-software/.github/.github/workflows/publish.yml@stable
8+
publish_development:
9+
if: github.event_name == 'push'
10+
steps:
11+
- uses: synodic-software/.github/.github/workflows/python-publish.yml@stable
12+
with:
13+
repository_url: https://test.pypi.org/
14+
token: ${{ secrets.TEST_PYPI_API_TOKEN }}
15+
16+
publish_release:
17+
if: github.event_name == 'release' && github.event.action == 'published'
18+
steps:
19+
- uses: synodic-software/.github/.github/workflows/python-publish.yml@stable
20+
with:
21+
repository_url: https://pypi.org/
22+
token: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)