From 78de4a815c7af1e81d85d10126d16e50cb4ef19e Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Fri, 16 Dec 2022 13:19:32 +0900 Subject: ci: add release workflow --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release.yml 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 -- cgit v1.2.1