-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (49 loc) · 1.36 KB
/
installer.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
name: Build and Package
permissions:
contents: write
on:
push:
tags :
- '*'
jobs:
build-and-package:
runs-on: ubuntu-latest
steps:
- name: Set up ENV
run: |
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Installing Dependencies
run : |
sudo apt-get install libasound2-dev
- uses: actions/checkout@v4
name: Checkout code
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.3'
- name: Build server
run: make build-server
- name: Build Client
run: make build-client
- name: Generate Installer
run: |
chmod +x ./scripts/compile_installer.sh
./scripts/compile_installer.sh
- name: Upload Installer Script
id : upload-installer
uses: actions/upload-artifact@v4
with:
name: installer-script
path: ./bin/installer.tar.gz
- name: Release Installer
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.RELEASE_VERSION }}
body: "Installer for version ${{ github.ref }}"
draft: false
prerelease: false
name: "retro-${{ env.RELEASE_VERSION}}"
files: ./bin/installer.tar.gz
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}