Update release workflow

This commit is contained in:
Gerhard Tan
2023-03-08 20:56:06 +08:00
parent 9432b31d37
commit 30099655ba
2 changed files with 11 additions and 15 deletions

View File

@ -1,7 +1,8 @@
name: Releaser name: Releaser
on: on:
workflow_dispatch: release:
types: [published]
jobs: jobs:
Release: Release:
@ -30,17 +31,12 @@ jobs:
echo ::set-output name=version::%GITHUB_REF:~11% echo ::set-output name=version::%GITHUB_REF:~11%
build.bat build.bat
- name: Get Changelog Entry - name: Upload Release Asset
id: changelog_reader uses: actions/upload-release-asset@v1
uses: mindsers/changelog-reader-action@v2.0.0 env:
if: startsWith(github.ref, 'refs/tags/') GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
version: ${{ steps.build.outputs.version }} upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/frpmgr-${{ steps.build.outputs.version }}-Setup.exe
- name: Create Release asset_name: frpmgr-${{ steps.build.outputs.version }}-Setup.exe
uses: softprops/action-gh-release@v1 asset_content_type: application/octet-stream
if: startsWith(github.ref, 'refs/tags/')
with:
token: ${{ secrets.GPR_TOKEN }}
body: ${{ steps.changelog_reader.outputs.changes }}
files: bin/*-Setup.exe

View File

@ -1,4 +1,4 @@
# Changelog # Changelog[Deprecated]
All notable changes to this project will be documented in this file. 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/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),