mirror of
https://github.com/koho/frpmgr.git
synced 2025-10-20 16:03:47 +08:00
Update releaser workflow
This commit is contained in:
28
.github/workflows/releaser.yml
vendored
28
.github/workflows/releaser.yml
vendored
@ -17,12 +17,30 @@ jobs:
|
||||
with:
|
||||
go-version: 1.17
|
||||
|
||||
- name: Build
|
||||
- name: Setup VS environment
|
||||
shell: cmd
|
||||
run: |
|
||||
for /f "usebackq delims=" %%i in (`vswhere.exe -latest -property installationPath`) do echo %%i\VC\Auxiliary\Build>>%GITHUB_PATH%
|
||||
|
||||
- name: Build
|
||||
id: build
|
||||
shell: cmd
|
||||
run: |
|
||||
set GOPATH=%USERPROFILE%\go
|
||||
for /f "tokens=1 delims=v" %%i in (version) do echo ::set-output name=version::%%i
|
||||
build.bat
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v2
|
||||
- name: Get Changelog Entry
|
||||
id: changelog_reader
|
||||
uses: mindsers/changelog-reader-action@v2
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
name: frpmgr
|
||||
path: bin
|
||||
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
|
||||
|
Reference in New Issue
Block a user