Skip to content

Commit

Permalink
actions: set version suffix on build
Browse files Browse the repository at this point in the history
  • Loading branch information
kookxiang committed May 12, 2024
1 parent 90aa712 commit 6c2bd1e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/emby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ jobs:
name: Build Plugin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
- name: Checkout Repository
uses: actions/checkout@v4
- name: Patch version
run: sed -i "/FileVersion/s/.0</.$GITHUB_RUN_NUMBER</" **/*.csproj
- name: Setup .NET 6.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6
- name: Restore NuGet Packages
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/jellyfin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Patch version
run: sed -i "/FileVersion/s/.0</.$GITHUB_RUN_NUMBER</" **/*.csproj
- name: Setup .NET 8.x
uses: actions/setup-dotnet@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions Emby.Plugin.Bangumi/Emby.Plugin.Bangumi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>Jellyfin.Plugin.Bangumi</RootNamespace>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<AssemblyVersion>1.6.0.0</AssemblyVersion>
<FileVersion>1.6.0.0</FileVersion>
<Nullable>enable</Nullable>
<DefineConstants>EMBY</DefineConstants>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions Jellyfin.Plugin.Bangumi/Jellyfin.Plugin.Bangumi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<RootNamespace>Jellyfin.Plugin.Bangumi</RootNamespace>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.0.0</FileVersion>
<AssemblyVersion>1.6.0.0</AssemblyVersion>
<FileVersion>1.6.0.0</FileVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down

0 comments on commit 6c2bd1e

Please sign in to comment.