Skip to content

Commit

Permalink
update publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed Jan 5, 2024
1 parent 2667903 commit bd7cd83
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
strategy:
matrix:
python-version: ["3.10"]
+ # Specifying a GitHub environment is optional, but strongly encouraged
+ environment: release
+ permissions:
+ # IMPORTANT: this permission is mandatory for trusted publishing
+ id-token: write

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -46,11 +51,8 @@ jobs:
release_name: ${{ github.event.inputs.version }}
draft: false
prerelease: false
- name: Publish
run: |
poetry config http-basic.pypi $USERNAME $PASSWORD
poetry build
poetry publish
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
env:
PASSWORD: ${{ secrets.pypi_password }}
USERNAME: Dolthub

0 comments on commit bd7cd83

Please sign in to comment.