Skip to content

Commit 17892e4

Browse files
authored
Update the releaser workflows to the latest version (#426)
* Update the releaser workflows to the latest version * Remove token from workflow dispatch
1 parent bdf9c27 commit 17892e4

File tree

3 files changed

+36
-7
lines changed

3 files changed

+36
-7
lines changed

.github/workflows/prep-release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
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
@@ -32,8 +36,8 @@ jobs:
3236
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
3337
version_spec: ${{ github.event.inputs.version_spec }}
3438
post_version_spec: ${{ github.event.inputs.post_version_spec }}
35-
target: ${{ github.event.inputs.target }}
3639
branch: ${{ github.event.inputs.branch }}
40+
# silent: ${{ github.event.inputs.silent }}
3741
since: ${{ github.event.inputs.since }}
3842
since_last_stable: ${{ github.event.inputs.since_last_stable }}
3943

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "Publish Changelog"
2+
on:
3+
release:
4+
types: [published]
5+
6+
workflow_dispatch:
7+
inputs:
8+
branch:
9+
description: "The branch to target"
10+
required: false
11+
12+
jobs:
13+
publish_changelog:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
17+
- name: Publish changelog
18+
id: publish-changelog
19+
uses: jupyter-server/jupyter_releaser/.github/actions/publish-changelog@v2
20+
with:
21+
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
22+
branch: ${{ github.event.inputs.branch }}
23+
24+
- name: "** Next Step **"
25+
run: |
26+
echo "Merge the changelog update PR: ${{ steps.publish-changelog.outputs.pr_url }}"

.github/workflows/publish-release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
jobs:
1616
publish_release:
1717
runs-on: ubuntu-latest
18+
permissions:
19+
# This is useful if you want to use PyPI trusted publisher
20+
# and NPM provenance
21+
id-token: write
1822
steps:
1923
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
2024

@@ -23,22 +27,17 @@ jobs:
2327
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
2428
with:
2529
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
26-
target: ${{ github.event.inputs.target }}
2730
branch: ${{ github.event.inputs.branch }}
2831
release_url: ${{ github.event.inputs.release_url }}
2932
steps_to_skip: ${{ github.event.inputs.steps_to_skip }}
3033

3134
- name: Finalize Release
3235
id: finalize-release
3336
env:
34-
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
35-
PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }}
36-
TWINE_USERNAME: __token__
3737
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38-
uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2
38+
uses: jupyter-server/jupyter_releaser/.github/actions/finalize-release@v2
3939
with:
4040
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
41-
target: ${{ github.event.inputs.target }}
4241
release_url: ${{ steps.populate-release.outputs.release_url }}
4342

4443
- name: "** Next Step **"

0 commit comments

Comments
 (0)