From f4b1d2a8b78ac453e50604e14674585845d441cb Mon Sep 17 00:00:00 2001 From: Kenta Kozuka Date: Sat, 18 Jun 2022 08:18:50 +0900 Subject: [PATCH] Add release workflow --- .github/workflows/release.yaml | 21 +++++++++++++++++++++ .go-version | 1 + RELEASE | 1 + 3 files changed, 23 insertions(+) create mode 100644 .github/workflows/release.yaml create mode 100644 .go-version create mode 100644 RELEASE diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..001eb3b --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,21 @@ +name: release + +on: + push: + branches: + - main + paths: + - 'RELEASE' + +jobs: + gh-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - run: | + gh release create "$(cat RELEASE | sed -r 's/^version: (.+)$/\1/')" --generate-notes + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE: ${{ github.event.issue.html_url }} diff --git a/.go-version b/.go-version new file mode 100644 index 0000000..b57fc72 --- /dev/null +++ b/.go-version @@ -0,0 +1 @@ +1.18.2 diff --git a/RELEASE b/RELEASE new file mode 100644 index 0000000..2ce5d90 --- /dev/null +++ b/RELEASE @@ -0,0 +1 @@ +version: v0.0.1 \ No newline at end of file