Skip to content

Commit

Permalink
Use Github OIDC to publish release to TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
acopar committed Dec 11, 2024
1 parent 152fd4a commit 405d78b
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:

jobs:
test:
runs-on: arc-runner
runs-on: acopar-runner

env:
RESOLWE_POSTGRESQL_PORT: 55433
Expand Down Expand Up @@ -110,8 +110,12 @@ jobs:
tox -e ${{ matrix.toxenv }}-partial
build:
runs-on: arc-runner
needs: test
runs-on: acopar-runner

permissions:
id-token: write
contents: read

if: startsWith(github.ref, 'refs/tags')

steps:
Expand All @@ -123,7 +127,7 @@ jobs:
- name: Build a binary wheel and a source tarball
run: python3.12 -m build --sdist --wheel --outdir dist/ .

- name: Publish distribution to PyPI
- name: Publish distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}
repository-url: https://test.pypi.org/legacy/

0 comments on commit 405d78b

Please sign in to comment.