Skip to content

Commit 0ed4f4e

Browse files
authored
ci: add a workflow to create the GitHub release (#584)
1 parent 20bb43b commit 0ed4f4e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Create GitHub release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: 'Version in the x.y.z form'
7+
required: true
8+
9+
env:
10+
VERSION: ${{ inputs.version }}
11+
TAG: v${{ inputs.version }}
12+
13+
jobs:
14+
create_release:
15+
runs-on: ubuntu-22.04
16+
permissions:
17+
contents: write # create the GH release
18+
steps:
19+
- name: Create release
20+
uses: ncipollo/release-action@v1
21+
with:
22+
body: |
23+
Examples for [bpmn-visualization@${{ env.VERSION }}](https://github.com/process-analytics/bpmn-visualization-js/releases/tag/${{ env.TAG }}).
24+
Live examples are available for [${{ env.VERSION }}](https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/${{ env.TAG }}/examples/index.html).
25+
generateReleaseNotes: true
26+
name: ${{ env.VERSION }}
27+
tag: ${{ env.TAG }}
28+
token: ${{ secrets.GH_RELEASE_TOKEN }}

0 commit comments

Comments
 (0)