From 4af626714a0e3fdd955df9642a9cc44c6ba0d1d0 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 | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..dd42eaf --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +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 ::set-output name=current_version::${GITHUB_REF#refs/tags/v} + echo ${GITHUB_REF#refs/tags/v} + echo $GITHUB_REF_NAME + echo ${{ github.ref#refs/tags/v }} + echo ${{ github.ref_name }} + shell: bash + - 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 }} + - name: Release + uses: softprops/action-gh-release@v1 + with: + body: ${{ steps.changelog_reader.outputs.changes }}