Skip to content

Commit 6a03870

Browse files
Updates release workflow to publish packages to PyPI
1 parent 743ef93 commit 6a03870

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/tripy-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ concurrency:
2121
jobs:
2222
build-and-release:
2323
runs-on: tripy-self-hosted
24+
permissions:
25+
# IMPORTANT: this permission is mandatory for trusted publishing
26+
id-token: write
27+
2428
environment:
2529
name: github-pages
2630
url: ${{ steps.deployment.outputs.page_url }}
@@ -57,6 +61,11 @@ jobs:
5761
files: /tripy/dist/tripy-*.whl
5862
fail_on_unmatched_files: true
5963

64+
- name: Publish To PyPI
65+
uses: pypa/gh-action-pypi-publish@release/v1
66+
with:
67+
packages-dir: /tripy/dist/
68+
6069
- uses: actions/configure-pages@v5
6170

6271
- uses: actions/upload-pages-artifact@v3

0 commit comments

Comments
 (0)