diff options
Diffstat (limited to '.github/workflows/release.yml')
-rw-r--r-- | .github/workflows/release.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0a2d157 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,23 @@ +name: Release +on: + push: + tags: + - "*" +jobs: + github: + name: GitHub + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v3 + - name: Extract release note + run: | + ruby \ + -e 'print("## rake-compiler "); \ + puts(ARGF.read.split(/^### /)[1].gsub(/ {.+?}/, ""))' \ + History.md > release-note.md + - name: Upload to release + run: | + gh release create \ + --discussion-category Announcements \ + --notes-file release-node.md |