12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- name: Check Release
- on:
- push:
- branches: [3.2.x]
- pull_request:
- branches: [3.2.x]
- release:
- types: [published]
- jobs:
- check_release:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- group: [check_release, link_check]
- steps:
- - name: Checkout
- uses: actions/checkout@v2
- - name: Set up Node
- uses: actions/setup-node@v1
- with:
- node-version: '14.x'
- - uses: actions/checkout@v2
- - name: Set up Python
- uses: actions/setup-python@v1
- with:
- python-version: 3.9
- # Cache yarn
- - name: Get yarn cache directory path
- id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
- - name: Cache yarn
- uses: actions/cache@v2
- id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
- with:
- path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
- key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- restore-keys: |
- ${{ runner.os }}-yarn-
- - name: Get pip cache dir
- id: pip-cache
- run: |
- echo "::set-output name=dir::$(pip cache dir)"
- - name: Cache pip
- uses: actions/cache@v2
- with:
- path: ${{ steps.pip-cache.outputs.dir }}
- key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
- restore-keys: |
- ${{ runner.os }}-pip-
- ${{ runner.os }}-pip-
- - name: Cache checked links build
- uses: actions/cache@v2
- if: ${{ matrix.group == 'link_check' }}
- with:
- path: ~/.cache/pytest-link-check
- key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/*.rst', '**/*.md') }}-changelog
- restore-keys: |
- ${{ runner.os }}-linkcheck-
- - 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@v2
- with:
- name: dist-files
- path: |
- .jupyter_releaser_checkout/dist/*.*
|