From 45cfa241e16c2e4172eae8dc7dd4bb9374e2b028 Mon Sep 17 00:00:00 2001 From: Kristen Thyng Date: Mon, 22 Jul 2024 10:10:17 -0500 Subject: [PATCH] Update release.yaml fixed PyPI release (I swear I already did this...) --- .github/workflows/release.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3e1a7ee..1976fed 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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-erddap + permissions: + id-token: write # IMPORTANT: this permission is mandatory for trusted publishing steps: - - uses: actions/checkout@v3 - - uses: actions/setup-python@v4 + - uses: actions/checkout@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