Skip to content

Commit

Permalink
Adds check-release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hbcarlos committed Aug 2, 2022
1 parent 18921ae commit df04090
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,25 +160,3 @@ jobs:
name: light-theme-playwright-tests
path: |
examples/tests/test-results
check-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14.x'

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'

- name: Check Release
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
43 changes: 43 additions & 0 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Check Release

on:
push:
branches: [master]
pull_request:
branches: [master]
release:
types: [published]

jobs:

check_release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
group: [check_release, link_check]
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

- name: Check Release
if: ${{ matrix.group == 'check_release' }}
uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
version_spec: next

- name: Run Link Check
if: ${{ matrix.group == 'link_check' }}
uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1

- name: Upload Assets
if: ${{ matrix.group == 'check_release' }}
uses: actions/upload-artifact@v3
with:
name: jupyterlab-releaser-dist-${{ github.run_number }}
path: |
.jupyter_releaser_checkout/dist/*.*

0 comments on commit df04090

Please sign in to comment.