Skip to content

Commit

Permalink
Merge pull request #174 from akretion/publish-pypi
Browse files Browse the repository at this point in the history
Pypi release
  • Loading branch information
florian-dacosta authored Apr 17, 2024
2 parents 1ec4a71 + 5dfa59d commit d382f76
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,3 @@ jobs:
run: |
python -m tox
- uses: codecov/codecov-action@v3
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/roulier
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
if: startsWith(github.ref, 'refs/tags')
steps:
# retrieve your distributions here
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
release:
types:
- published

name: release

jobs:
pypi:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: release

permissions:
# Used to authenticate to PyPI via OIDC.
id-token: write

steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: ">= 3.8"

- name: build
run: pipx run build

- name: publish
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit d382f76

Please sign in to comment.