Skip to content

Commit

Permalink
ci: add wf to create GH release for the examples repo (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouffard authored Jan 8, 2024
1 parent 2b9ae80 commit 9e49958
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/post-release-create-gh-release_Examples_repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Create GitHub release (examples repo)

on:
push:
tags:
- v*

jobs:
create_release:
runs-on: ubuntu-22.04
permissions:
contents: write # create the GH release
steps:
- name: Set env
run: |
echo "RELEASE_VERSION=${GITHUB_REF_NAME#v}" >> $GITHUB_ENV
echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_ENV
- name: Create release
uses: ncipollo/release-action@v1
with:
body: |
Examples for [bpmn-visualization@${{ env.RELEASE_VERSION }}](https://github.com/process-analytics/bpmn-visualization-js/releases/tag/${{ env.TAG }}).
Live examples are available for [${{ env.RELEASE_VERSION }}](https://cdn.statically.io/gh/process-analytics/bpmn-visualization-examples/${{ env.TAG }}/examples/index.html).
draft: true
generateReleaseNotes: true
name: ${{ env.RELEASE_VERSION }}
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ The event is received by the repository which triggers workflows (simulate what
- [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
- [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


### bpmn-visualization-examples

When a tag is pushed in this repository, a new GitHub draft release is created as it is done in bpmn-visualization-examples.
See the related [worfklow](.github/workflows/post-release-create-gh-release_Examples_repo.yml).


### bpmnVisualizationR

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)).
Expand Down

0 comments on commit 9e49958

Please sign in to comment.