Skip to content

Commit

Permalink
<FIX> workflow
Browse files Browse the repository at this point in the history
Removing workflow warnings of using he deprecated pypa/gh-action-pypi-publish@release/master
  • Loading branch information
Dayron Fernández committed Nov 13, 2024
1 parent 73d2c8b commit a6ba6af
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:

- name: Install pypa/build
run: |
pip install build --user # Install build for packaging
pip install . # Install your package along with dependencies
pip install build --user
pip install .
- name: Install pypa/pdoc
run: >-
python -m
Expand All @@ -35,14 +35,13 @@ jobs:
run: python -m build --sdist --wheel --outdir dist/

- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true

- name: Publish distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit a6ba6af

Please sign in to comment.