diff --git a/.github/workflows/post-release-create-gh-release_Examples_repo.yml b/.github/workflows/post-release-create-gh-release_Examples_repo.yml new file mode 100644 index 0000000..db2a082 --- /dev/null +++ b/.github/workflows/post-release-create-gh-release_Examples_repo.yml @@ -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 }} diff --git a/README.md b/README.md index ba854c2..cc722bb 100644 --- a/README.md +++ b/README.md @@ -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)).