Release version 0.6.0 #3
Workflow file for this run
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
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
name: Release Build | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: Checkout repository and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Nuget.exe | |
uses: NuGet/setup-nuget@v2 | |
- name: Nuget Restore | |
run: nuget restore ".\Friendly Set Play Time.sln" | |
- name: Build (DotNET4.6.2) | |
run: | | |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\" | |
.\MSBuild.exe "${{ github.workspace }}\Friendly Set Play Time.sln" -p:Configuration=Release -restore | |
- name: Setup Playnite | |
run: | | |
Invoke-WebRequest -Uri "https://github.com/JosefNemec/Playnite/releases/download/10.33/Playnite1033.zip" -OutFile "${{ github.workspace }}\Playnite.zip" | |
Expand-Archive "${{ github.workspace }}\Playnite.zip" -DestinationPath "${{ github.workspace }}\Playnite" | |
- name: Pack with Playnite | |
run: | | |
cd "${{ github.workspace }}\Playnite" | |
.\Toolbox.exe pack "${{ github.workspace }}\Source\bin\Release\" "${{ github.workspace }}\Toolbox\" | |
cd "${{ github.workspace }}\Toolbox" | |
Get-ChildItem -Filter *.pext | Rename-Item -NewName "CanRanBan_Generic_FriendlySetPlayTime_${{ github.ref_name }}.pext" | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
draft: true | |
prerelease: false | |
files: | | |
Toolbox/*.pext |