From 3abf8dc7967783eddc984d0a77feca7ebb43e85d Mon Sep 17 00:00:00 2001 From: lbw Date: Sat, 2 Mar 2024 19:28:10 +0800 Subject: [PATCH] :green_heart: Fixing CI Build. add github-release.yml workflow --- .github/workflows/github-release.yml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/github-release.yml diff --git a/.github/workflows/github-release.yml b/.github/workflows/github-release.yml new file mode 100644 index 0000000..2b0afd7 --- /dev/null +++ b/.github/workflows/github-release.yml @@ -0,0 +1,31 @@ +name: publish github release +on: + workflow_dispatch: + push: + tags: + - '*' + +jobs: + publish-github-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Generate changelog + id: changelog + uses: metcalfc/changelog-generator@v4.3.1 + with: + myToken: ${{ secrets.GH_TOKEN }} + + - name: Create GitHub Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + with: + tag_name: ${{ github.event.inputs.releaseversion }} + release_name: ${{ github.event.inputs.releaseversion }} + body: | + ### Things that changed in this release + ${{ steps.changelog.outputs.changelog }} + draft: false + prerelease: ${{ contains(github.event.inputs.releaseversion, '-') }}