File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 26
26
env :
27
27
MAVEN_ARGS : " --no-transfer-progress --batch-mode"
28
28
runs-on : ubuntu-latest
29
+ environment :
30
+ name : pypi
31
+ url : https://pypi.org/p/timefold-solver
32
+ permissions :
33
+ id-token : write # IMPORTANT: mandatory for trusted publishing
29
34
steps :
30
35
- name : Print inputs to the release workflow
31
36
run : echo "${{ toJSON(github.event.inputs) }}"
@@ -119,7 +124,9 @@ jobs:
119
124
out/jreleaser/trace.log
120
125
out/jreleaser/output.properties
121
126
122
- # TODO: Use https://github.com/marketplace/actions/pypi-publish to publish to PyPI here
127
+ - name : Publish distribution to PyPI
128
+ uses : pypa/gh-action-pypi-publish@release/v1
129
+ if : ${{ github.event.inputs.dryRun == 'false' }}
123
130
124
131
# Pull Request will be created with the changes and a summary of next steps.
125
132
- name : Put back the 999-SNAPSHOT version on the release branch
You can’t perform that action at this time.
0 commit comments