From 30099655baa8d7cc2bd688b95abd31a002c80a00 Mon Sep 17 00:00:00 2001 From: Gerhard Tan Date: Wed, 8 Mar 2023 20:56:06 +0800 Subject: [PATCH] Update release workflow --- .github/workflows/releaser.yml | 24 ++++++++++-------------- CHANGELOG.md | 2 +- 2 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index a901e352..6380b857 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -1,7 +1,8 @@ name: Releaser on: - workflow_dispatch: + release: + types: [published] jobs: Release: @@ -30,17 +31,12 @@ jobs: echo ::set-output name=version::%GITHUB_REF:~11% build.bat - - name: Get Changelog Entry - id: changelog_reader - uses: mindsers/changelog-reader-action@v2.0.0 - if: startsWith(github.ref, 'refs/tags/') + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - version: ${{ steps.build.outputs.version }} - - - name: Create Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - token: ${{ secrets.GPR_TOKEN }} - body: ${{ steps.changelog_reader.outputs.changes }} - files: bin/*-Setup.exe + upload_url: ${{ github.event.release.upload_url }} + asset_path: ./bin/frpmgr-${{ steps.build.outputs.version }}-Setup.exe + asset_name: frpmgr-${{ steps.build.outputs.version }}-Setup.exe + asset_content_type: application/octet-stream diff --git a/CHANGELOG.md b/CHANGELOG.md index 86325ed2..53a1a2e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# Changelog +# Changelog[Deprecated] All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),