Skip to content

Commit

Permalink
Test trusted publishing to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
kks32 committed Oct 27, 2023
1 parent 1366ecb commit 44d108a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: Publish to PyPI
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
on: [push]
jobs:
pypi-publish:
name: Upload release to PyPI
Expand All @@ -13,7 +10,13 @@ jobs:
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
# retrieve your distributions here

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install the project dependencies
run: poetry install
- name: Build package
run: poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 44d108a

Please sign in to comment.