1+ name : Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build :
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ build : [
13+ {name: google-gemini-desktop-app-linux-amd64-v0.0.1, platform: linux/amd64, os: ubuntu-latest},
14+ {name: google-gemini-desktop-app-windows-amd64-v0.0.1, platform: windows/amd64, os: windows-latest},
15+ ]
16+ runs-on : ${{ matrix.build.os }}
17+ steps :
18+ - uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Fetch all tags
23+ run : git fetch --tags --force
24+
25+ - name : Calculate next version
26+ id : version
27+ run : |
28+ latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
29+ echo "Latest tag: $latest_tag"
30+ latest_version=${latest_tag#v}
31+ major=$(echo $latest_version | cut -d. -f1)
32+ minor=$(echo $latest_version | cut -d. -f2)
33+ patch=$(echo $latest_version | cut -d. -f3)
34+ next_patch=$((patch + 1))
35+ new_version="v$major.$minor.$next_patch"
36+ echo "Calculated next version: $new_version"
37+ echo "version=$new_version" >> $GITHUB_OUTPUT
38+
39+ - uses : dAppServer/wails-build-action@main
40+ with :
41+ build-name : ${{ matrix.build.name }}
42+ build-platform : ${{ matrix.build.platform }}
43+ build-obfuscate : true
44+ package : true
45+
46+ # - name: Upload binaries to release
47+ # uses: svenstaro/upload-release-action@v2
48+ # with:
49+ # repo_token: ${{ secrets.GITHUB_TOKEN }}
50+ # file: build/bin/${{ matrix.build.name }}
51+ # asset_name: ${{ matrix.build.name }}
52+ # tag: v0.0.1
53+ # overwrite: true
54+ # body: "This is my release text"
0 commit comments