|
| 1 | +name: "Steps 1 + 2: Full Release" |
| 2 | +on: |
| 3 | + workflow_dispatch: |
| 4 | + inputs: |
| 5 | + version_spec: |
| 6 | + description: "New Version Specifier" |
| 7 | + default: "next" |
| 8 | + required: false |
| 9 | + branch: |
| 10 | + description: "The branch to target" |
| 11 | + required: false |
| 12 | + post_version_spec: |
| 13 | + description: "Post Version Specifier" |
| 14 | + required: false |
| 15 | + since: |
| 16 | + description: "Use PRs with activity since this date or git reference" |
| 17 | + required: false |
| 18 | + since_last_stable: |
| 19 | + description: "Use PRs with activity since the last stable git tag" |
| 20 | + required: false |
| 21 | + type: boolean |
| 22 | + steps_to_skip: |
| 23 | + description: "Comma separated list of steps to skip during Populate Release" |
| 24 | + required: false |
| 25 | +jobs: |
| 26 | + full_release: |
| 27 | + runs-on: ubuntu-latest |
| 28 | + steps: |
| 29 | + - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 |
| 30 | + |
| 31 | + - name: Prep Release |
| 32 | + id: prep-release |
| 33 | + uses: jupyter-server/jupyter_releaser/.github/actions/prep-release@v2 |
| 34 | + with: |
| 35 | + token: ${{ secrets.ADMIN_GITHUB_TOKEN }} |
| 36 | + version_spec: ${{ github.event.inputs.version_spec }} |
| 37 | + post_version_spec: ${{ github.event.inputs.post_version_spec }} |
| 38 | + branch: ${{ github.event.inputs.branch }} |
| 39 | + since: ${{ github.event.inputs.since }} |
| 40 | + since_last_stable: ${{ github.event.inputs.since_last_stable }} |
| 41 | + |
| 42 | + - name: Populate Release |
| 43 | + id: populate-release |
| 44 | + uses: jupyter-server/jupyter_releaser/.github/actions/populate-release@v2 |
| 45 | + with: |
| 46 | + token: ${{ secrets.ADMIN_GITHUB_TOKEN }} |
| 47 | + branch: ${{ github.event.inputs.branch }} |
| 48 | + release_url: ${{ steps.prep-release.outputs.release_url }} |
| 49 | + steps_to_skip: ${{ github.event.inputs.steps_to_skip }} |
| 50 | + |
| 51 | + - name: Finalize Release |
| 52 | + id: finalize-release |
| 53 | + env: |
| 54 | + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} |
| 55 | + PYPI_TOKEN_MAP: ${{ secrets.PYPI_TOKEN_MAP }} |
| 56 | + TWINE_USERNAME: __token__ |
| 57 | + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
| 58 | + uses: jupyter-server/jupyter-releaser/.github/actions/finalize-release@v2 |
| 59 | + with: |
| 60 | + token: ${{ secrets.ADMIN_GITHUB_TOKEN }} |
| 61 | + release_url: ${{ steps.populate-release.outputs.release_url }} |
| 62 | + |
| 63 | + - name: "** Next Step **" |
| 64 | + if: ${{ success() }} |
| 65 | + run: | |
| 66 | + echo "Verify the final release" |
| 67 | + echo ${{ steps.finalize-release.outputs.release_url }} |
0 commit comments