Skip to content
This repository was archived by the owner on Jul 20, 2026. It is now read-only.

Commit 0e513b1

Browse files
committed
ci: update release workflow to publish latest pre-release on main
1 parent 8c86702 commit 0e513b1

1 file changed

Lines changed: 13 additions & 20 deletions

File tree

.github/workflows/release.yml

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,6 @@ jobs:
2020
output: portscanner
2121
asset: GoMap-linux-amd64
2222

23-
- runner: ubuntu-latest
24-
platform: linux/arm64
25-
output: portscanner
26-
asset: GoMap-linux-arm64
27-
cross_cc: aarch64-linux-gnu-gcc
28-
cross_pkg: gcc-aarch64-linux-gnu
29-
3023
- runner: windows-latest
3124
platform: windows/amd64
3225
output: portscanner.exe
@@ -56,20 +49,9 @@ jobs:
5649
sudo apt-get update
5750
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev
5851
59-
- name: Install arm64 cross-compiler
60-
if: matrix.cross_pkg != ''
61-
run: sudo apt-get install -y ${{ matrix.cross_pkg }}
6252
6353
# ── Build ────────────────────────────────────────────────────────────────
64-
- name: Build (arm64 cross-compile)
65-
if: matrix.cross_cc != ''
66-
env:
67-
CC: ${{ matrix.cross_cc }}
68-
CGO_ENABLED: '1'
69-
run: wails build -platform ${{ matrix.platform }} -tags webkit2_41
70-
7154
- name: Build
72-
if: matrix.cross_cc == ''
7355
run: wails build -platform ${{ matrix.platform }} -tags webkit2_41
7456

7557
# ── Rename to final asset name ───────────────────────────────────────────
@@ -82,8 +64,19 @@ jobs:
8264
shell: pwsh
8365
run: Copy-Item build/bin/${{ matrix.output }} build/bin/${{ matrix.asset }}
8466

85-
# ── Upload to GitHub Release (tags only) ─────────────────────────────────
86-
- name: Upload release asset
67+
# ── Upload to GitHub Release ─────────────────────────────────────────────
68+
- name: Upload to "latest" pre-release (main branch)
69+
if: github.ref == 'refs/heads/main'
70+
uses: softprops/action-gh-release@v2
71+
with:
72+
tag_name: latest
73+
name: Latest Build
74+
prerelease: true
75+
files: build/bin/${{ matrix.asset }}
76+
env:
77+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
79+
- name: Upload to versioned release (tag)
8780
if: startsWith(github.ref, 'refs/tags/v')
8881
uses: softprops/action-gh-release@v2
8982
with:

0 commit comments

Comments
 (0)