Skip to content

Commit 41c76a8

Browse files
committed
Added PyPi Publish
1 parent cc92baf commit 41c76a8

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.github/workflows/release_gen.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ on:
1010
- "v[0-9]+.[0-9]+.[0-9]+"
1111

1212
jobs:
13+
test:
14+
uses: ./.github/workflows/test.yml
1315
release-gen:
16+
needs: test
1417
runs-on: ubuntu-latest
1518
permissions:
1619
contents: write
@@ -22,6 +25,7 @@ jobs:
2225
generateReleaseNotes: true
2326

2427
build-and-push-image:
28+
needs: test
2529
runs-on: ubuntu-latest
2630
permissions:
2731
contents: read
@@ -54,3 +58,16 @@ jobs:
5458
labels: ${{ steps.meta.outputs.labels }}
5559
cache-from: type=gha
5660
cache-to: type=gha,mode=max
61+
publish:
62+
needs: test
63+
runs-on: ubuntu-latest
64+
permissions:
65+
contents: read
66+
packages: write
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@v3
70+
- name: Build and publish to pypi
71+
uses: JRubics/[email protected]
72+
with:
73+
pypi_token: ${{ secrets.PYPI_TOKEN }}

.github/workflows/test.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ jobs:
2626
max_attempts: 3
2727
retry_on: error
2828
command: task test
29-
29+
- name: Build and publish to pypi
30+
uses: JRubics/[email protected]
31+
with:
32+
pypi_token: ${{ secrets.PYPI_TOKEN }}
33+
poetry_install_options: "--sync --no-root"
34+
poetry_publish_options: "--dry-run"

0 commit comments

Comments
 (0)