Skip to content

Commit

Permalink
Configure to use CI as trusted publisher (#137)
Browse files Browse the repository at this point in the history
Also, adapt CI to for newer python releases and drop py37 support
  • Loading branch information
rytilahti authored Nov 4, 2023
1 parent 0d6c1e2 commit 85de9cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:

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

steps:
- uses: "actions/checkout@v2"
- uses: "actions/setup-python@v2"
- uses: "actions/checkout@v3"
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
- name: "Install dependencies"
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 85de9cf

Please sign in to comment.