Skip to content

Commit

Permalink
Configure to use CI as trusted publisher
Browse files Browse the repository at this point in the history
Also, adapt CI to for new python releases and drop py37
  • Loading branch information
rytilahti committed Nov 4, 2023
1 parent 0d6c1e2 commit 08fe329
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: "actions/checkout@v2"
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ jobs:
build-n-publish:
name: Build release packages
runs-on: ubuntu-latest
permissions: # for trusted publishing
id-token: write

steps:
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: "3.x"

- name: Install pypa/build
run: >-
Expand All @@ -30,6 +32,4 @@ jobs:
--outdir dist/
.
- name: Publish release on pypi
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 08fe329

Please sign in to comment.