Deploy to GitHub Releases #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to GitHub Releases | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version number for the release' | |
required: true | |
default: '' | |
jobs: | |
deploy-to-github-releases: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Install .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Publish Application | |
run: dotnet publish VideoJaNai/VideoJaNai.csproj -c Release -o publish -r win-x64 | |
- name: Create Velopack Release | |
run: | | |
dotnet tool install -g vpk --prerelease | |
vpk download github --repoUrl https://github.com/the-database/VideoJaNai | |
vpk pack -u VideoJaNai -v ${{ github.event.inputs.version }} -p publish -i ./VideoJaNai/assets/logo.ico -e VideoJaNai.exe | |
vpk upload github --repoUrl https://github.com/the-database/VideoJaNai --publish --releaseName "${{ github.event.inputs.version }}" --tag ${{ github.event.inputs.version }} --token ${{ secrets.GITHUB_TOKEN }} --pre |