Skip to content

Commit 9e49958

Browse files
authored
ci: add wf to create GH release for the examples repo (#311)
1 parent 2b9ae80 commit 9e49958

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Create GitHub release (examples repo)
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
create_release:
10+
runs-on: ubuntu-22.04
11+
permissions:
12+
contents: write # create the GH release
13+
steps:
14+
- name: Set env
15+
run: |
16+
echo "RELEASE_VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
17+
echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_ENV
18+
- name: Create release
19+
uses: ncipollo/release-action@v1
20+
with:
21+
body: |
22+
Examples for [bpmn-visualization@${{ env.RELEASE_VERSION }}](https://github.com/process-analytics/bpmn-visualization-js/releases/tag/${{ env.TAG }}).
23+
Live examples are available for [${{ env.RELEASE_VERSION }}](https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/${{ env.TAG }}/examples/index.html).
24+
draft: true
25+
generateReleaseNotes: true
26+
name: ${{ env.RELEASE_VERSION }}

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ The event is received by the repository which triggers workflows (simulate what
4343
- [bpmn-visualization-examples repository](.github/workflows/post-release-update_bpmn_visualization_version_in_Examples_repo.yml): download the artifact attached to the previous workflow run, then create a Pull Request
4444
- [bpmn-visualization-R repository](.github/workflows/post-release-update_bpmn_visualization_version_in_R_repo.yml): update bpmn-visualization assets an create a Pull Request
4545

46+
47+
### bpmn-visualization-examples
48+
49+
When a tag is pushed in this repository, a new GitHub draft release is created as it is done in bpmn-visualization-examples.
50+
See the related [worfklow](.github/workflows/post-release-create-gh-release_Examples_repo.yml).
51+
52+
4653
### bpmnVisualizationR
4754

4855
The [Release of bpmnVisualizationR package](.github/workflows/release-R.yml) workflow update the `README.md` file and the `DESCRIPTION` file, commit the modification, and pushes branch/tag on a branch with restricted rules (used in [bpmn-visualization-R](https://github.com/process-analytics/bpmn-visualization-R)).

0 commit comments

Comments
 (0)