Skip to content

Commit

Permalink
Test build and publish with testpypi
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfG committed Nov 20, 2024
1 parent fc329af commit 07dfd9f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build_and_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build and publish to PyPI
on:
release:
types: [created]
pull_request:

jobs:
build-sdist:
Expand Down Expand Up @@ -50,8 +51,8 @@ jobs:
needs: [build-sdist, build-wheels]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/ms2pip
name: testpypi
url: https://test.pypi.org/p/ms2pip
permissions:
id-token: write
steps:
Expand All @@ -61,3 +62,5 @@ jobs:
mv wheels-*/*.whl dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

0 comments on commit 07dfd9f

Please sign in to comment.