Skip to content

Commit

Permalink
Fix publish jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Jan 12, 2024
1 parent d08c546 commit 4baf8c4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ jobs:
permissions:
id-token: write # This is required for trusted publishing to PyPI
steps:
- name: git clone develop
uses: actions/checkout@v4
with:
ref: develop

- name: set up Python
uses: actions/setup-python@v4
with:
Expand All @@ -107,17 +112,16 @@ jobs:
- name: build binary wheel and source tarball
run: python -m build
working-directory: ./nextplot

- name: Publish package distributions to PyPI
if: ${{ matrix.target-env == 'pypi' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: ./nextplot/dist
packages-dir: ./dist

- name: Publish package distributions to TestPyPI
if: ${{ matrix.target-env == 'testpypi' }}
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: ./nextplot/dist
packages-dir: ./dist

0 comments on commit 4baf8c4

Please sign in to comment.