-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (46 loc) · 1.3 KB
/
build-application.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
name: Build & Deploy TorizonCore
on:
- push
jobs:
build-deploy:
runs-on: ubuntu-latest
name: Build & Deploy
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v3
- name: Setup
shell: pwsh
run: |
sudo apt-get -q -y install `
libfontconfig1 `
mesa-utils `
x11-xserver-utils `
libxkbcommon-x11-0 `
libfreetype6 `
libgbm1 `
libinput10 `
libxkbcommon0 `
xkb-data `
xvfb
- name: Build
shell: pwsh
run: |
xvfb-run pwsh -f ./.vscode/tasks.ps1 run build-debug-local
- name: Build Release
shell: pwsh
run: |
xvfb-run pwsh -f ./.vscode/tasks.ps1 run publish-release-amd64
- name: Release
shell: pwsh
env:
GH_TOKEN: ${{ secrets.GH_TKN }}
run: |
$_tag = Get-Content -Path ./VERSION
zip -r "Torizon-WSL2-Welcome-$_tag.zip" ./bin/Release/net8.0/linux-x64/publish/
gh repo set-default commontorizon/torizonWSLWelcome
gh release create `
--target main $_tag `
-t "Torizon WSL2 Welcome $_tag" `
-n "Torizon WSL2 Welcome $_tag" `
"Torizon-WSL2-Welcome-$_tag.zip"