Skip to content

Commit

Permalink
Update PyPI publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiodsf committed Sep 30, 2024
1 parent 5510381 commit 5376cbb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/github-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,24 @@ jobs:
- name: Check metadata
run: pipx run twine check dist/*

publish:
needs: [dist]
runs-on: ubuntu-latest
publish-to-pypi:
name: >-
Publish to PyPI
# upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
# alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published'
needs:
- dist
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/nllgrid
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@v1.4.2
with:
user: claudiodsf
password: ${{ secrets.pypi_password }}
- name: Download all the dists
uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ Python class for reading and writing

(c) 2015-2024 Claudio Satriano, Natalia Poiata, Robert Pickle

## v1.5.1 - 2024-09-30

- Fix for PyPI publishing

## v1.5 - 2024-09-30

- `NLLGrid.horizontal_recenter()` method to move the (x, y) origin of grid
Expand Down

0 comments on commit 5376cbb

Please sign in to comment.