Skip to content

Commit

Permalink
Implements new pypi publish.
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaquet committed Mar 13, 2024
1 parent 4961eda commit 8bb863e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/test_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@ on:
push:
branches:
- develop
paths:
- 'src/**'
- 'setup.py'

jobs:
build-and-publish:
name: Test Build and Publish
runs-on: ubuntu-latest
environment:
name: testpypi
url: https://test.pypi.org/p/cwmath
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
Expand All @@ -23,9 +25,8 @@ jobs:
- run: pip install pip-tools
- run: pip-sync

- run: python -m build --sdist --wheel --outdir dist/ .
- run: python -m build

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

0 comments on commit 8bb863e

Please sign in to comment.