mirror of
https://github.com/koho/frpmgr.git
synced 2025-10-20 16:03:47 +08:00
Update release workflow
This commit is contained in:
24
.github/workflows/releaser.yml
vendored
24
.github/workflows/releaser.yml
vendored
@ -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
|
||||
|
@ -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/),
|
||||
|
Reference in New Issue
Block a user