-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.01 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build Release
on:
push:
branches:
- "master"
tags:
- "v*" # For v1.0, v0.1.0, etc
pull_request:
branches:
- "master"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
sudo apt update -y
sudo apt install -y docker golang git
go install github.com/fyne-io/fyne-cross@latest
~/go/bin/fyne-cross linux -arch=amd64,arm64 -app-id="OnionSoup"
~/go/bin/fyne-cross windows -arch=amd64,arm64 -app-id="Onion.Soup"
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
LICENSE
fyne-cross/dist/linux-amd64/onionsoup.tar.xz
fyne-cross/dist/linux-arm64/onionsoup.tar.xz
fyne-cross/dist/windows-amd64/onionsoup.exe.zip
fyne-cross/dist/windows-arm64/onionsoup.exe.zip
token: ${{ secrets.GH_TOKEN }}