Skip to content

Commit 0db8ddd

Browse files
committed
Update check-release workflow to use latest releaser
1 parent 43f30ae commit 0db8ddd

File tree

1 file changed

+20
-39
lines changed

1 file changed

+20
-39
lines changed

.github/workflows/check-release.yml

Lines changed: 20 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,32 @@ permissions:
1313
jobs:
1414
check_release:
1515
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
group: [check_release, link_check]
19+
python-version: ["3.9"]
20+
node-version: ["14.x"]
21+
1622
steps:
1723
- name: Checkout
18-
uses: actions/checkout@v2
19-
- name: Install Python
20-
uses: actions/setup-python@v2
21-
with:
22-
python-version: 3.9
23-
architecture: 'x64'
24-
- name: Install node
25-
uses: actions/setup-node@v2
26-
with:
27-
node-version: '14.x'
28-
29-
30-
- name: Get pip cache dir
31-
id: pip-cache
32-
run: |
33-
echo "::set-output name=dir::$(pip cache dir)"
34-
- name: Cache pip
35-
uses: actions/cache@v1
36-
with:
37-
path: ${{ steps.pip-cache.outputs.dir }}
38-
key: ${{ runner.os }}-pip-${{ hashFiles('package.json') }}
39-
restore-keys: |
40-
${{ runner.os }}-pip-
41-
- name: Cache checked links
42-
uses: actions/cache@v2
43-
with:
44-
path: ~/.cache/pytest-link-check
45-
key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/.md') }}-md-links
46-
restore-keys: |
47-
${{ runner.os }}-linkcheck-
48-
- name: Upgrade packaging dependencies
49-
run: |
50-
pip install --upgrade pip setuptools wheel jupyter-packaging~=0.10 --user
24+
uses: actions/checkout@v3
25+
- name: Base Setup
26+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
5127
- name: Install Dependencies
52-
run: |
53-
pip install .
28+
run: pip install -e .
29+
30+
- name: Check Links
31+
if: ${{ matrix.group == 'link_check' }}
32+
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1
33+
5434
- name: Check Release
55-
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
35+
if: ${{ matrix.group == 'check_release' }}
36+
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2
5637
with:
5738
token: ${{ secrets.GITHUB_TOKEN }}
58-
5939
- name: Upload Distributions
60-
uses: actions/upload-artifact@v2
40+
if: ${{ matrix.group == 'check_release' }}
41+
uses: actions/upload-artifact@v3
6142
with:
62-
name: jupyterlab_lego_boost-releaser-dist-${{ github.run_number }}
43+
name: jupyter-releaser-dist-${{ github.run_number }}
6344
path: .jupyter_releaser_checkout/dist

0 commit comments

Comments
 (0)