forked from jupyter-server/jupyter_releaser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
38 lines (35 loc) · 1.12 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "Publish Release"
description: "Publish assets and finalize GitHub release"
inputs:
token:
description: "GitHub access token"
required: true
release_url:
description: "The full url to the GitHub release page"
required: true
dry_run:
description: "If set, do not push permanent changes"
default: "false"
required: false
outputs:
release_url:
description: "The html URL of the GitHub release"
value: ${{ steps.publish-release.outputs.release_url }}
pr_url:
description: "The html URL of the forwardport PR if applicable"
value: ${{ steps.publish-release.outputs.pr_url }}
runs:
using: "composite"
steps:
- shell: bash
id: publish-release
run: |
set -eux
# Set up env variables
export GITHUB_ACCESS_TOKEN=${{ inputs.token }}
export RH_DRY_RUN=${{ inputs.dry_run }}
export release_url=${{ inputs.release_url }}
# Install Jupyter Releaser from git
pip install -q git+https://github.com/jupyter-server/jupyter_releaser.git@v1
# Publish release
python -m jupyter_releaser.actions.publish_release