Skip to content

Commit

Permalink
Merge pull request #22 from stac-utils/tom/fix/publish
Browse files Browse the repository at this point in the history
Update release workflow
  • Loading branch information
Tom Augspurger authored Jul 19, 2023
2 parents 09f545c + d8fdcea commit d97fd60
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ on:
- created

jobs:
release:
name: release
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
if: ${{ github.repository }} == 'stac-utils/stac-geoparquet'
# Specifying a GitHub environment is optional, but strongly encouraged
# environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v2

# retrieve your distributions here
- name: Set up Python 3.x
uses: actions/setup-python@v2
with:
Expand All @@ -21,12 +23,11 @@ jobs:
- name: Install release dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine build
python -m pip install build
- name: Build and publish package
env:
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
- name: Build package
run: |
python -m build
twine upload dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit d97fd60

Please sign in to comment.