This repository has been archived by the owner on Aug 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (66 loc) · 1.79 KB
/
release-app.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Release
on:
push:
tags:
- "v*.*.*"
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.20"
- name: Build (Windows)
uses: dAppServer/[email protected]
with:
build-name: geemo.exe
build-platform: windows/amd64
package: false
nsis: false
- name: Build (Linux)
uses: dAppServer/[email protected]
with:
build-name: geemo
build-platform: linux/amd64
package: false
nsis: false
- name: Upload Windows Artifact in GOOS-GOARCH format
uses: actions/upload-artifact@v3
with:
name: windows-amd64
path: ./build/bin/geemo.exe
- name: Upload Linux Artifact in GOOS-GOARCH format
uses: actions/upload-artifact@v3
with:
name: linux-amd64
path: ./build/bin/geemo
release:
name: Release
needs: build
runs-on: ubuntu-20.04
steps:
- name: Download Windows Artifact
uses: actions/download-artifact@v2
with:
name: windows-amd64
- name: Download Linux Artifact
uses: actions/download-artifact@v2
with:
name: linux-amd64
- name: Zip
run: |
zip -r geemo-windows-${{github.ref_name}}.zip geemo.exe
zip -r geemo-linux-${{github.ref_name}}.zip geemo
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
token: ${{ secrets.PRIVATE_REPO_TOKEN }}
files: |
geemo-windows-${{github.ref_name}}.zip
geemo-linux-${{github.ref_name}}.zip