Skip to content

Commit

Permalink
updated pypi release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kthyng committed Jun 21, 2024
1 parent 16c33d8 commit c0d034f
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,23 @@ on: [push]

jobs:
release:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/intake-coops
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
python -m pip install -U pip wheel "setuptools<66.0.0" setuptools-scm twine
python -m pip install -U pip wheel setuptools setuptools-scm twine
# python -m pip install -U pip wheel "setuptools<66.0.0" setuptools-scm twine
- name: Build distributions
run: python setup.py sdist bdist_wheel

- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c0d034f

Please sign in to comment.