Skip to content

Commit

Permalink
ci(pip): move to trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
k4black committed Nov 1, 2023
1 parent d0d6a73 commit e02c2ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,17 @@ jobs:
release-python-package:
needs: [external-build-workflow, update-version-and-changelog]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/codebleu
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/download-artifact@v3
with:
name: artifact # if `name: artifact` is omitted, the action will create extra parent dir
path: dist
# TODO: Trusted publishing
- uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_TOKEN }}

sync-to-hf-hub:
needs: update-version-and-changelog
Expand Down

0 comments on commit e02c2ce

Please sign in to comment.