check-release.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. name: Check Release
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. permissions:
  10. contents: write
  11. jobs:
  12. check_release:
  13. runs-on: ubuntu-latest
  14. steps:
  15. - name: Checkout
  16. uses: actions/checkout@v2
  17. - name: Install Python
  18. uses: actions/setup-python@v2
  19. with:
  20. python-version: 3.9
  21. architecture: 'x64'
  22. - name: Install node
  23. uses: actions/setup-node@v2
  24. with:
  25. node-version: '14.x'
  26. - name: Get pip cache dir
  27. id: pip-cache
  28. run: |
  29. echo "::set-output name=dir::$(pip cache dir)"
  30. - name: Cache pip
  31. uses: actions/cache@v1
  32. with:
  33. path: ${{ steps.pip-cache.outputs.dir }}
  34. key: ${{ runner.os }}-pip-${{ hashFiles('package.json') }}
  35. restore-keys: |
  36. ${{ runner.os }}-pip-
  37. - name: Cache checked links
  38. uses: actions/cache@v2
  39. with:
  40. path: ~/.cache/pytest-link-check
  41. key: ${{ runner.os }}-linkcheck-${{ hashFiles('**/.md') }}-md-links
  42. restore-keys: |
  43. ${{ runner.os }}-linkcheck-
  44. - name: Upgrade packaging dependencies
  45. run: |
  46. pip install --upgrade pip setuptools wheel jupyter-packaging~=0.10 --user
  47. - name: Install Dependencies
  48. run: |
  49. pip install .
  50. - name: Check Release
  51. uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1
  52. with:
  53. token: ${{ secrets.GITHUB_TOKEN }}
  54. - name: Upload Distributions
  55. uses: actions/upload-artifact@v2
  56. with:
  57. name: yili-dag-releaser-dist-${{ github.run_number }}
  58. path: .jupyter_releaser_checkout/dist