-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (60 loc) · 1.8 KB
/
dotnet-desktop.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build and Release
on:
workflow_dispatch:
push:
branches:
- 'release/*'
paths:
- 'SpinShareClient/**'
jobs:
build:
name: build-and-publish
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup NodeJS
uses: actions/setup-node@v3
with:
node-version: 21.x
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore NuGet packages
run: dotnet restore
- name: Run tests
run: dotnet test --no-restore --verbosity normal
- name: Install flatpak dependencies
run: |
sudo apt update
sudo apt install flatpak flatpak-builder
sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
sudo flatpak install org.gnome.Sdk/x86_64/45 -y
sudo flatpak install org.gnome.Platform/x86_64/45 -y
shell: bash
- name: List Files
run: |
ls -lp ./publish
shell: bash
- name: Build & Publish
run: |
cd ./publish
git update-index --chmod=+x publish.sh
./publish.sh "win-x64 linux-x64" "3.0.0-preview"
shell: bash
- name: List Files
run: |
ls -lp ./publish/output
shell: bash
- name: Create release
uses: softprops/action-gh-release@v1
with:
files: |
publish/output/spinshare.3.0.0-preview.win-x64.zip
publish/output/spinshare.3.0.0-preview.linux-x64.flatpak
token: ${{ secrets.GITHUB_TOKEN }}
generate_release_notes: true
name: 3.0.0 Preview ${{ github.event.repository.updated_at }}
draft: true
prerelease: true