Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
ci: Add publish to PyPI step to release workflow (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher-Chianelli authored May 15, 2024
1 parent 087c5e9 commit e48c7bc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
env:
MAVEN_ARGS: "--no-transfer-progress --batch-mode"
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/timefold-solver
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing
steps:
- name: Print inputs to the release workflow
run: echo "${{ toJSON(github.event.inputs) }}"
Expand Down Expand Up @@ -119,7 +124,9 @@ jobs:
out/jreleaser/trace.log
out/jreleaser/output.properties
# TODO: Use https://github.com/marketplace/actions/pypi-publish to publish to PyPI here
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
if: ${{ github.event.inputs.dryRun == 'false' }}

# Pull Request will be created with the changes and a summary of next steps.
- name: Put back the 999-SNAPSHOT version on the release branch
Expand Down

0 comments on commit e48c7bc

Please sign in to comment.