Skip to content

Update deploy.yml

Update deploy.yml #2

Workflow file for this run

name: Deploy to GitHub Releases
on:
push:
tags:
- '**' # This pattern matches tags starting with 'v'
jobs:
deploy-to-github-releases:
runs-on: windows-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Get Version from Tag
id: get-version
shell: bash
run: echo "version=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Publish Application
run: dotnet publish MangaJaNaiConverterGui/MangaJaNaiConverterGui.csproj -c Release -o publish -r win-x64
- name: Create Velopack Release
run: |
dotnet tool install -g vpk
vpk download github --repoUrl https://github.com/the-database/MangaJaNaiConverterGui
vpk pack -u MangaJaNaiConverterGui -v ${{ steps.get-version.outputs.version }} -p publish -i ./MangaJaNaiConverterGui/assets/logo.ico -e MangaJaNaiConverterGui.exe
vpk upload github --repoUrl https://github.com/the-database/MangaJaNaiConverterGui --publish --releaseName "${{ steps.get-version.outputs.version }}" --tag ${{ steps.get-version.outputs.version }}