Skip to content

Commit

Permalink
Prepare for 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bburky committed Sep 14, 2021
1 parent 7d1cc97 commit d8b6cd1
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 3 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
on:
release:
types: [published]

name: Build and Upload Release Asset

jobs:
build:
name: Build and Upload Release Asset
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Add msbuild to PATH
uses: microsoft/[email protected]

- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1

- name: Restore NuGet Packages
run: nuget restore Playlist.sln

- name: Build and Publish
run: |
msbuild Playlist.sln /p:Configuration=Release
$version = ($env:GITHUB_REF -Split "/")[-1]
echo "VERSION=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: bin/Playlist.pext
asset_name: Playlist-${{ env.VERSION }}.pext
asset_content_type: application/zip
8 changes: 8 additions & 0 deletions Playlist.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,12 @@
</None>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="Zip" BeforeTargets="AfterBuild">
<ItemGroup>
<ZipFiles Include="README.md" />
<ZipFiles Include="LICENSE" />
<ZipFiles Include="$(OutputPath)*" Exclude="$(OutputPath)Playnite.SDK.*" />
</ItemGroup>
<Exec Command="PowerShell -NoProfile -command Compress-Archive -Force @(ZipFiles, ',') '$(OutputPath)..\$(AssemblyName).zip' ; Move-Item '$(OutputPath)..\$(AssemblyName).zip' '$(OutputPath)..\$(AssemblyName).pext'" />
</Target>
</Project>
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
2 changes: 1 addition & 1 deletion extension.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Id: Playlist_b0313f81-2b86-4eba-9f24-1a727dedbd45
Name: Playlist
Author: Blake Burkhart
Version: 1.0
Version: 1.1
Module: Playlist.dll
Type: GenericPlugin
Icon: icon.png
Expand Down

0 comments on commit d8b6cd1

Please sign in to comment.