Skip to content

Commit

Permalink
Publish to TestPyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Jan 12, 2024
1 parent 16e5807 commit cebe2a5
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,20 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- target-env: pypi
target-url: https://pypi.org/p/nextplot
- target-env: testpypi
target-url: https://test.pypi.org/p/nextplot
env:
VERSION: ${{ inputs.VERSION }}
GH_TOKEN: ${{ github.token }}
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
environment:
name: pypi
url: https://pypi.org/p/nextplot
name: ${{ matrix.target-env }}
url: ${{ matrix.target-url }}
permissions:
id-token: write # This is required for trusted publishing to PyPI
contents: write
Expand Down Expand Up @@ -87,3 +94,9 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./nextplot/dist

- name: Publish package distributions to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: ./nextplot/dist

0 comments on commit cebe2a5

Please sign in to comment.