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
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

View File

@ -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/),