-
-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (30 loc) · 1.38 KB
/
dotnet-desktop-velopack.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
name: Deploy to GitHub Releases
on:
push:
branches:
- main
jobs:
deploy-to-github-releases:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Get Version from Project File
id: get-version
shell: bash
run: echo "version=$(grep -oE '<Version>[^<]+' Mirivoice/Mirivoice.csproj | sed 's/<Version>//')" >> $GITHUB_OUTPUT
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Publish Application
run:
dotnet publish Mirivoice/Mirivoice.csproj -c Release -o publish -r win-x64 --self-contained true
dotnet publish Mirivoice/Mirivoice.csproj -c Release -o publish -r linux-x64 --self-contained true
dotnet publish Mirivoice/Mirivoice.csproj -c Release -o publish -r osx-x64 --self-contained true
- name: Create Velopack Release
run: |
dotnet tool install -g vpk
vpk download github --repoUrl https://github.com/EX3exp/MiriVoice
vpk pack -u MiriVoice -v ${{ steps.get-version.outputs.version }} -p publish
vpk upload github --repoUrl https://github.com/EX3exp/MiriVoice --publish --releaseName "MiriVoice ${{ steps.get-version.outputs.version }}" --tag v${{ steps.get-version.outputs.version }}