Skip to content

Commit

Permalink
use the 'trusted publisher' workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bfontaine committed Dec 6, 2023
1 parent c8a0aad commit fbe5a7b
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,31 @@ on:
jobs:
build:
runs-on: ubuntu-latest
# https://docs.pypi.org/trusted-publishers/using-a-publisher/
environment: release
permissions:
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Build and publish to pypi
uses: JRubics/[email protected]
- name: Install Poetry
run: |
pipx install poetry
- name: Set up Python
uses: actions/setup-python@v4
with:
python_version: "3.9"
pypi_token: ${{ secrets.PYPI_TOKEN }}
ignore_dev_requirements: yes
python-version: '3.9'
cache: 'poetry'

- name: Install dependencies
run: |
poetry install
- name: Build
run: |
poetry build
- name: Publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit fbe5a7b

Please sign in to comment.