From 272ae149af745b50847f3310b4b6ec4fb56c6d03 Mon Sep 17 00:00:00 2001 From: Seow Alex Date: Fri, 21 Apr 2023 12:12:19 +0800 Subject: [PATCH] Test --- .github/workflows/release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 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..01fa6ff --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,27 @@ +name: Release + +on: + push: + tags: + - v[0-9]+.[0-9]+.[0-9]+ + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Get version from tag + id: tag_name + run: echo current_version=${GITHUB_REF_NAME#v} >> $GITHUB_OUTPUT + - name: Checkout + uses: actions/checkout@v3 + - name: Get changelog entry + id: changelog_reader + uses: mindsers/changelog-reader-action@v2 + with: + version: ${{ steps.tag_name.outputs.current_version }} + validation_level: error + - name: Release + uses: softprops/action-gh-release@v1 + with: + body: ${{ steps.changelog_reader.outputs.changes }}