Skip to content

Commit d97fd60

Browse files
author
Tom Augspurger
authored
Merge pull request #22 from stac-utils/tom/fix/publish
Update release workflow
2 parents 09f545c + d8fdcea commit d97fd60

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/publish.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ on:
66
- created
77

88
jobs:
9-
release:
10-
name: release
9+
pypi-publish:
10+
name: upload release to PyPI
1111
runs-on: ubuntu-latest
12-
if: ${{ github.repository }} == 'stac-utils/stac-geoparquet'
12+
# Specifying a GitHub environment is optional, but strongly encouraged
13+
# environment: release
14+
permissions:
15+
id-token: write
1316
steps:
14-
- uses: actions/checkout@v2
15-
17+
# retrieve your distributions here
1618
- name: Set up Python 3.x
1719
uses: actions/setup-python@v2
1820
with:
@@ -21,12 +23,11 @@ jobs:
2123
- name: Install release dependencies
2224
run: |
2325
python -m pip install --upgrade pip
24-
pip install setuptools wheel twine build
26+
python -m pip install build
2527
26-
- name: Build and publish package
27-
env:
28-
TWINE_USERNAME: "__token__"
29-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
28+
- name: Build package
3029
run: |
3130
python -m build
32-
twine upload dist/*
31+
32+
- name: Publish package distributions to PyPI
33+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)