-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add wf to create GH release for the examples repo (#311)
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
.github/workflows/post-release-create-gh-release_Examples_repo.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters