Skip to content

Commit

Permalink
refactor: streamline release workflow and update publishing method to…
Browse files Browse the repository at this point in the history
… use pypa/gh-action-pypi-publish
  • Loading branch information
mikita-sakalouski committed Sep 17, 2024
1 parent 0725c5d commit 45b6fe6
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,7 @@ jobs:
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment:
name: release
url: https://pypi.org/project/koheesio/
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
Expand All @@ -85,9 +83,6 @@ jobs:
with:
name: python-artifacts
path: dist

- name: Install Hatch
uses: pypa/hatch@install

- name: Publish package to PyPI
run: hatch publish --yes --no-prompt

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

0 comments on commit 45b6fe6

Please sign in to comment.