Update releaser workflow

This commit is contained in:
koho
2022-03-03 15:19:26 +08:00
parent 4b3f7b7af8
commit e77bf5df4b

View File

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