File tree 2 files changed +93
-0
lines changed
2 files changed +93
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : " Step 1: Prep Release"
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ version_spec :
6
+ description : " New Version Specifier"
7
+ default : " next"
8
+ required : false
9
+ branch :
10
+ description : " The branch to target"
11
+ required : false
12
+ post_version_spec :
13
+ description : " Post Version Specifier"
14
+ required : false
15
+ since :
16
+ description : " Use PRs with activity since this date or git reference"
17
+ required : false
18
+ since_last_stable :
19
+ description : " Use PRs with activity since the last stable git tag"
20
+ required : false
21
+ type : boolean
22
+ jobs :
23
+ prep_release :
24
+ runs-on : ubuntu-latest
25
+ steps :
26
+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
27
+
28
+ - name : Prep Release
29
+ id : prep-release
30
+ uses : jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
31
+ with :
32
+ token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
33
+ version_spec : ${{ github.event.inputs.version_spec }}
34
+ post_version_spec : ${{ github.event.inputs.post_version_spec }}
35
+ branch : ${{ github.event.inputs.branch }}
36
+ since : ${{ github.event.inputs.since }}
37
+ since_last_stable : ${{ github.event.inputs.since_last_stable }}
38
+
39
+ - name : " ** Next Step **"
40
+ run : |
41
+ echo "Optional): Review Draft Release: ${{ steps.prep-release.outputs.release_url }}"
Original file line number Diff line number Diff line change
1
+ name : " Step 2: Publish Release"
2
+ on :
3
+ workflow_dispatch :
4
+ inputs :
5
+ branch :
6
+ description : " The target branch"
7
+ required : false
8
+ release_url :
9
+ description : " The URL of the draft GitHub release"
10
+ required : false
11
+ steps_to_skip :
12
+ description : " Comma separated list of steps to skip"
13
+ required : false
14
+
15
+ jobs :
16
+ publish_release :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
20
+
21
+ - name : Populate Release
22
+ id : populate-release
23
+ uses : jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
24
+ with :
25
+ token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
26
+ branch : ${{ github.event.inputs.branch }}
27
+ release_url : ${{ github.event.inputs.release_url }}
28
+ steps_to_skip : ${{ github.event.inputs.steps_to_skip }}
29
+
30
+ - name : Finalize Release
31
+ id : finalize-release
32
+ env :
33
+ PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
34
+ PYPI_TOKEN_MAP : ${{ secrets.PYPI_TOKEN_MAP }}
35
+ TWINE_USERNAME : __token__
36
+ NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
37
+ uses : jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2
38
+ with :
39
+ token : ${{ secrets.ADMIN_GITHUB_TOKEN }}
40
+ release_url : ${{ steps.populate-release.outputs.release_url }}
41
+
42
+ - name : " ** Next Step **"
43
+ if : ${{ success() }}
44
+ run : |
45
+ echo "Verify the final release"
46
+ echo ${{ steps.finalize-release.outputs.release_url }}
47
+
48
+ - name : " ** Failure Message **"
49
+ if : ${{ failure() }}
50
+ run : |
51
+ echo "Failed to Publish the Draft Release Url:"
52
+ echo ${{ steps.populate-release.outputs.release_url }}
You can’t perform that action at this time.
0 commit comments