Skip to content

Commit 4c8fab3

Browse files
committed
Define new release process for linux binaries
1 parent 69eb02a commit 4c8fab3

File tree

2 files changed

+55
-1
lines changed

2 files changed

+55
-1
lines changed

.github/workflows/release.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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"

.github/workflows/wails-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
fail-fast: false
99
matrix:
1010
build: [
11-
{name: wailsTest, platform: linux/amd64, os: ubuntu-latest},
11+
{name: google-gemini-desktop-app-linux-amd64-v0.0.1, platform: linux/amd64, os: ubuntu-latest},
1212
{name: wailsTest, platform: windows/amd64, os: windows-latest},
1313
{name: wailsTest, platform: darwin/universal, os: macos-latest}
1414
]

0 commit comments

Comments
 (0)