Skip to content

Commit

Permalink
Merge pull request #218 from hakonanes/fix-publish-workflow
Browse files Browse the repository at this point in the history
Minor updates to publish workflow
  • Loading branch information
hakonanes authored May 14, 2024
2 parents 870d632 + fb685e7 commit 5622c4d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ on:
release:
types: [published]
workflow_dispatch:
workflow: "*"

jobs:
deploy:
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.x'

Expand All @@ -41,7 +41,7 @@ jobs:
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://test.pypi.org/legacy/
repository-url: https://test.pypi.org/legacy/

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 5622c4d

Please sign in to comment.