File tree Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Expand file tree Collapse file tree 2 files changed +21
-10
lines changed Original file line number Diff line number Diff line change 1212 post_version_spec :
1313 description : " Post Version Specifier"
1414 required : false
15+ silent :
16+ description : " Set a placeholder in the changelog and don't publish the release."
17+ required : false
18+ type : boolean
1519 since :
1620 description : " Use PRs with activity since this date or git reference"
1721 required : false
2226jobs :
2327 prep_release :
2428 runs-on : ubuntu-latest
29+ permissions :
30+ contents : write
2531 steps :
2632 - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2733
2834 - name : Prep Release
2935 id : prep-release
3036 uses : jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
3137 with :
32- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
38+ token : ${{ secrets.GITHUB_TOKEN }}
3339 version_spec : ${{ github.event.inputs.version_spec }}
40+ silent : ${{ github.event.inputs.silent }}
3441 post_version_spec : ${{ github.event.inputs.post_version_spec }}
35- target : ${{ github.event.inputs.target }}
3642 branch : ${{ github.event.inputs.branch }}
3743 since : ${{ github.event.inputs.since }}
3844 since_last_stable : ${{ github.event.inputs.since_last_stable }}
Original file line number Diff line number Diff line change 1515jobs :
1616 publish_release :
1717 runs-on : ubuntu-latest
18+ environment : release
19+ permissions :
20+ id-token : write
1821 steps :
1922 - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2023
24+ - uses : actions/create-github-app-token@v1
25+ id : app-token
26+ with :
27+ app-id : ${{ vars.APP_ID }}
28+ private-key : ${{ secrets.APP_PRIVATE_KEY }}
29+
2130 - name : Populate Release
2231 id : populate-release
2332 uses : jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
2433 with :
25- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
26- target : ${{ github.event.inputs.target }}
34+ token : ${{ steps.app-token.outputs.token }}
2735 branch : ${{ github.event.inputs.branch }}
2836 release_url : ${{ github.event.inputs.release_url }}
2937 steps_to_skip : ${{ github.event.inputs.steps_to_skip }}
3038
3139 - name : Finalize Release
3240 id : finalize-release
3341 env :
34- PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
35- PYPI_TOKEN_MAP : ${{ secrets.PYPI_TOKEN_MAP }}
36- TWINE_USERNAME : __token__
3742 NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
38- uses : jupyter-server/jupyter-releaser /.github/actions/finalize-release@v2
43+ uses : jupyter-server/jupyter_releaser /.github/actions/finalize-release@v2
3944 with :
40- token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
41- target : ${{ github.event.inputs.target }}
45+ token : ${{ steps.app-token.outputs.token }}
4246 release_url : ${{ steps.populate-release.outputs.release_url }}
4347
4448 - name : " ** Next Step **"
4549 if : ${{ success() }}
4650 run : |
4751 echo "Verify the final release"
4852 echo ${{ steps.finalize-release.outputs.release_url }}
53+
4954 - name : " ** Failure Message **"
5055 if : ${{ failure() }}
5156 run : |
You can’t perform that action at this time.
0 commit comments