Skip to content

Commit

Permalink
for new environment for pypi build
Browse files Browse the repository at this point in the history
  • Loading branch information
KedoKudo committed Jul 5, 2024
1 parent b4027b2 commit 6f27074
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 6f27074

Please sign in to comment.