Merge pull request #30 from xiaomakuaiz/feat-add-some-testcase #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release blazehttp windows gui | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
windows-gui-releaser: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.22' | |
- name: Set up fyne-cross | |
run: go install github.com/fyne-io/fyne-cross@latest | |
- name: build windows | |
run: fyne-cross windows -app-id cn.chaitin.blazehttp -arch="amd64,arm64" ./gui | |
- name: Normalise version tag | |
id: normalise_version | |
shell: bash | |
run: | | |
version=$(echo ${{ github.ref_name }} | sed -e 's/v//g') | |
echo "version=$version" >> "$GITHUB_OUTPUT" | |
- name: Normalise artifact name | |
id: normalise_artifact_name | |
shell: bash | |
run: | | |
mv ./fyne-cross/dist/windows-amd64/blazehttp.exe.zip ./fyne-cross/dist/windows-amd64/blazehttp_${{ steps.normalise_version.outputs.version }}_windows_amd64_gui.zip | |
mv ./fyne-cross/dist/windows-arm64/blazehttp.exe.zip ./fyne-cross/dist/windows-arm64/blazehttp_${{ steps.normalise_version.outputs.version }}_windows_arm64_gui.zip | |
- name: release gui | |
uses: softprops/action-gh-release@v1 | |
with: | |
if: startsWith(github.ref, 'refs/tags/') | |
files: | | |
./fyne-cross/dist/windows-amd64/blazehttp_${{ steps.normalise_version.outputs.version }}_windows_amd64_gui.zip | |
./fyne-cross/dist/windows-arm64/blazehttp_${{ steps.normalise_version.outputs.version }}_windows_arm64_gui.zip | |
token: ${{ secrets.GITHUB_TOKEN }} |