Skip to content

Commit 3c71ca1

Browse files
committed
feat(publish): add steps for publishing the package
1 parent 720e363 commit 3c71ca1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,29 @@ on:
77
jobs:
88
release:
99
runs-on: ubuntu-latest
10+
outputs:
11+
release_created: ${{ steps.track-release.outputs.release_created }}
1012
steps:
1113
- uses: google-github-actions/release-please-action@v4
1214
id: track-release
1315
with:
1416
manifest-file: .github/.release-please-manifest.json
1517
config-file: .github/release-please-config.json
18+
publish:
19+
runs-on: ubuntu-latest
20+
environment: release
21+
permissions:
22+
id-token: write
23+
needs:
24+
- release
25+
if: ${{ needs.release.outputs.release_created }}
26+
steps:
27+
- uses: actions/checkout@v4
28+
- name: Set up Python
29+
uses: ./.github/actions/setup-env
30+
- name: build package
31+
run: poetry build
32+
# this action uploads packages from the `dist/` directory
33+
# usable once we set up trusted publishing, see https://docs.pypi.org/trusted-publishers/using-a-publisher/
34+
- name: push package
35+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)