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
|
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
|
|
||||||
|
@ -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/),
|
||||||
|
Reference in New Issue
Block a user