-
-
Notifications
You must be signed in to change notification settings - Fork 550
71 lines (71 loc) · 1.89 KB
/
release.yml
File metadata and controls
71 lines (71 loc) · 1.89 KB
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
name: Build WinBoat
on:
push:
branches:
- main
tags:
- "v*"
jobs:
build:
runs-on: ubuntu-latest
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "stable"
- name: Install dependencies
run: npm ci
- name: Build guest server and app
run: npm run build:linux-gs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: linux-artifacts
path: dist/*
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install dependencies
run: npm ci
- name: Build guest server and app
run: npm run build:linux-gs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package unpacked variant
run: |
cd dist
zip -r winboat-linux-unpacked.zip linux-unpacked/
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: |
dist/*.AppImage
dist/winboat-linux-unpacked.zip
dist/latest-linux.yml
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}