diff options
author | Sutou Kouhei <kou@clear-code.com> | 2022-12-16 13:19:32 +0900 |
---|---|---|
committer | Sutou Kouhei <kou@clear-code.com> | 2022-12-16 13:19:32 +0900 |
commit | 78de4a815c7af1e81d85d10126d16e50cb4ef19e (patch) | |
tree | 8674bfe91b9e2ff9e2984167740b427d7e04e129 | |
parent | 66740bbe2e7867bbcb2f4e73b5e85277c4a21f9f (diff) | |
download | rake-compiler-78de4a815c7af1e81d85d10126d16e50cb4ef19e.tar.gz |
ci: add release workflow
-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 |