Skip to content

Commit

Permalink
feat: change workflows to publish in pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
ACornuIGN committed Oct 4, 2024
1 parent 6d2ba73 commit 0116c64
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/publish_pypi.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Publish ign-borea package on PyPI

on:
push:
branches: [deploy_pypi]
release:
types: [released]

jobs:
build:
Expand All @@ -29,18 +29,18 @@ jobs:
path: dist/


publish-to-testpypi:
name: Publish Python distribution to TestPyPI
publish-to-pypi:
name: Publish Python distribution to PyPI
needs:
- build
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/p/ign-borea
name: pypi
url: https://pypi.org/p/ign-borea

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
id-token: write

steps:
- name: Download all the dists
Expand All @@ -51,5 +51,3 @@ jobs:

- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 0116c64

Please sign in to comment.