Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
forced to adopt trusted publishing
  • Loading branch information
Stanford-CVX-group authored Aug 23, 2023
1 parent 806a28a commit 927aa4f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ jobs:
deploy-pypi:
runs-on: ubuntu-latest
environment: deployment
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing

steps:
- name: Checkout Repository
uses: actions/checkout@v3
Expand All @@ -24,8 +27,8 @@ jobs:
git fetch --prune --unshallow --tags
sudo python setup.py sdist bdist_wheel
- name: Push to PyPI
run: sudo twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} dist/*
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

deploy-conda:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 927aa4f

Please sign in to comment.