Skip to content

Commit

Permalink
Update package.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
fabricebrito authored Dec 13, 2024
1 parent 067d0e4 commit f1a6443
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,17 @@ jobs:
run: |
# python -m pip install --upgrade pip
pip install hatch
- name: Build package
run: hatch build

- name: Test package
run: hatch -e test run nose2 --verbose

- name: Publish package distributions to Test PyPI
if: github.ref != 'refs/heads/main'
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
repository-url: https://test.pypi.org/legacy/
- name: Publish package distributions to PyPI
if: github.ref == 'refs/heads/master'
uses: pypa/gh-action-pypi-publish@release/v1
with:
skip-existing: true
repository-url: https://upload.pypi.org/legacy/
env:
TWINE_USERNAME: __token__ # Use '__token__' as the username
TWINE_PASSWORD: ${{ secrets.PYPI_APIKEY }} # PyPI API token stored as a secret
run: |
hatch build
hatch publish

0 comments on commit f1a6443

Please sign in to comment.