Skip to content

Commit

Permalink
Update dotnet-desktop-velopack.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
EX3exp authored Sep 22, 2024
1 parent 1e09840 commit 1992554
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/dotnet-desktop-velopack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ on:
push:
branches:
- main

jobs:
deploy-to-github-releases:
runs-on: windows-latest
strategy:
matrix:
platform: [win-x64, linux-x64, osx-x64]

runs-on: ${{ matrix.platform == 'win-x64' && 'windows-latest' || matrix.platform == 'linux-x64' && 'ubuntu-latest' || matrix.platform == 'osx-x64' && 'macos-latest' }}

steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -21,16 +27,18 @@ jobs:
with:
dotnet-version: 8.0.x

- name: Publish Application
run:
dotnet publish Mirivoice/Mirivoice.csproj -c Release -o publish/win-x64 -r win-x64 --self-contained true
dotnet publish Mirivoice/Mirivoice.csproj -c Release -o publish/linux-x64 -r linux-x64 --self-contained true
dotnet publish Mirivoice/Mirivoice.csproj -c Release -o publish/osx-x64 -r osx-x64 --self-contained true
- name: Publish Application for ${{ matrix.platform }}
run: |
dotnet publish Mirivoice/Mirivoice.csproj -c Release -o publish/${{ matrix.platform }} -r ${{ matrix.platform }} --self-contained true
- name: Create Velopack Release
- name: Install Velopack
run: dotnet tool install -g vpk

- name: Create Velopack Package for ${{ matrix.platform }}
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 }}
vpk pack -u MiriVoice -v ${{ steps.get-version.outputs.version }} -p publish/${{ matrix.platform }}
- name: Upload Velopack Release for ${{ matrix.platform }}
run: |
vpk upload github --repoUrl https://github.com/EX3exp/MiriVoice --publish --releaseName "MiriVoice ${{ steps.get-version.outputs.version }}" --tag v${{ steps.get-version.outputs.version }} --platform ${{ matrix.platform }}

0 comments on commit 1992554

Please sign in to comment.