-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.49 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
40
41
42
43
44
name: Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Setup Velopack
run: |
dotnet tool update -g vpk
- name: Build
run: |
dotnet publish -c Release --self-contained -r win-x64 -o publish
vpk download github --repoUrl https://github.com/rgbcraft/NewRGBLauncher/
vpk pack -u NewRGB -o releases -p publish -f net8-x64-desktop -v ${{github.ref_name}}
vpk upload github --repoUrl "https://github.com/rgbcraft/NewRGBLauncher/" --merge --releaseName v${{github.ref_name}} --tag ${{github.ref_name}} --token ${{ secrets.GITHUB_TOKEN }} -o releases
build-linux:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Setup Velopack
run: |
sudo add-apt-repository universe
sudo apt install libfuse2
dotnet tool update -g vpk
- name: Build
run: |
chmod +x build-linux.sh
bash build-linux.sh ${{github.ref_name}} ${{ secrets.GITHUB_TOKEN }}