Skip to content

Commit

Permalink
HARMONY-1756: Change github publish action to use trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
indiejames committed May 1, 2024
1 parent 740c37c commit 1795c3b
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
VERSION_TAG: ${{ github.event.release.tag_name }}
BRANCH: ${{ github.event.release.target_commitish }}
run: |
VERSION=$(echo "${VERSION_TAG}" | cut -c2-) make install publish
VERSION=$(echo "${VERSION_TAG}" | cut -c2-) make install build
# Setup git
# https://api.github.com/users/github-actions%5Bbot%5D
Expand All @@ -35,3 +35,25 @@ jobs:
git tag --force "${VERSION_TAG}"
git push --force origin "${VERSION_TAG}"
- name: upload dists
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest
needs:
- build
permissions:
id-token: write

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

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

0 comments on commit 1795c3b

Please sign in to comment.