Skip to content

Commit 733587d

Browse files
committed
Update workflows
1 parent da38b93 commit 733587d

File tree

3 files changed

+36
-17
lines changed

3 files changed

+36
-17
lines changed

.github/workflows/check-release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@ on:
44
branches: ["main"]
55
pull_request:
66
branches: ["*"]
7+
release:
8+
types: [published]
9+
schedule:
10+
- cron: "0 0 * * *"
711

812
jobs:
913
check_release:
1014
runs-on: ubuntu-latest
1115
steps:
12-
- name: Checkout
13-
uses: actions/checkout@v3
14-
- name: Base Setup
15-
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
16+
- uses: actions/checkout@v4
17+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
1618
- name: Install Dependencies
19+
shell: bash
1720
run: |
1821
pip install -e .
1922
- name: Check Release
20-
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
23+
uses: ./.github/actions/check-release
2124
with:
22-
2325
token: ${{ secrets.GITHUB_TOKEN }}
2426

2527
- name: Upload Distributions

.github/workflows/prep-release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Step 1: Prep Release"
22
on:
33
workflow_dispatch:
44
inputs:
5+
target:
6+
description: "The owner/repo GitHub target"
7+
required: true
58
version_spec:
69
description: "New Version Specifier"
710
default: "next"
@@ -12,6 +15,10 @@ on:
1215
post_version_spec:
1316
description: "Post Version Specifier"
1417
required: false
18+
silent:
19+
description: "Set a placeholder in the changelog and don't publish the release."
20+
required: false
21+
type: boolean
1522
since:
1623
description: "Use PRs with activity since this date or git reference"
1724
required: false
@@ -23,16 +30,22 @@ jobs:
2330
prep_release:
2431
runs-on: ubuntu-latest
2532
steps:
33+
- uses: actions/checkout@v4
2634
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
27-
35+
- name: Install Dependencies
36+
shell: bash
37+
run: |
38+
pip install -e .
2839
- name: Prep Release
2940
id: prep-release
3041
uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2
3142
with:
3243
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
3344
version_spec: ${{ github.event.inputs.version_spec }}
3445
post_version_spec: ${{ github.event.inputs.post_version_spec }}
46+
target: ${{ github.event.inputs.target }}
3547
branch: ${{ github.event.inputs.branch }}
48+
silent: ${{ github.event.inputs.silent }}
3649
since: ${{ github.event.inputs.since }}
3750
since_last_stable: ${{ github.event.inputs.since_last_stable }}
3851

.github/workflows/publish-release.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: "Step 2: Publish Release"
22
on:
33
workflow_dispatch:
44
inputs:
5+
target:
6+
description: "The owner/repo GitHub target"
7+
required: false
58
branch:
69
description: "The target branch"
710
required: false
@@ -15,33 +18,34 @@ on:
1518
jobs:
1619
publish_release:
1720
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
2221
steps:
22+
- uses: actions/checkout@v4
2323
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
24-
24+
- name: Install Dependencies
25+
shell: bash
26+
run: |
27+
pip install -e .
2528
- name: Populate Release
2629
id: populate-release
2730
uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2
2831
with:
2932
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
33+
target: ${{ github.event.inputs.target }}
3034
branch: ${{ github.event.inputs.branch }}
3135
release_url: ${{ github.event.inputs.release_url }}
3236
steps_to_skip: ${{ github.event.inputs.steps_to_skip }}
3337

3438
- name: Finalize Release
3539
id: finalize-release
3640
env:
37-
# The following are needed if you use legacy PyPI set up
38-
# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
39-
# PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }}
40-
# TWINE_USERNAME: __token__
41+
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
42+
PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }}
43+
TWINE_USERNAME: __token__
4144
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
42-
uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2
45+
uses: jupyter-server/jupyter_releaser/.github/actions/finalize-release@v2
4346
with:
4447
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
48+
target: ${{ github.event.inputs.target }}
4549
release_url: ${{ steps.populate-release.outputs.release_url }}
4650

4751
- name: "** Next Step **"

0 commit comments

Comments
 (0)