From 6f270746049623de861b21301d948495c03e7d18 Mon Sep 17 00:00:00 2001 From: Chen Zhang Date: Fri, 5 Jul 2024 15:32:13 +0000 Subject: [PATCH] for new environment for pypi build --- .github/workflows/package.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 52121b6..6391069 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -49,7 +49,6 @@ jobs: pypi-publish: name: upload release to PyPI runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') permissions: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write @@ -61,12 +60,11 @@ jobs: channels: conda-forge,defaults mamba-version: "*" environment-file: environment.yml - cache-environment-key: ${{ runner.os }}-env-${{ hashFiles('**/environment.yml') }} - cache-downloads-key: ${{ runner.os }}-downloads-${{ hashFiles('**/environment.yml') }} - name: build pypi pacakge run: | # build the package VERSION=$(versioningit .) python -m build # retrieve your distributions here - name: Publish package distributions to PyPI + if: startsWith(github.ref, 'refs/tags/v') uses: pypa/gh-action-pypi-publish@release/v1