Skip to content

Commit

Permalink
Update pushlish scripts to dotnet 8
Browse files Browse the repository at this point in the history
  • Loading branch information
jesseward committed May 14, 2024
1 parent f348265 commit 87c6ff8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,33 @@ jobs:
id: tagName

- uses: actions/checkout@v2

- name: Checkout manifest build scripts repo.
uses: actions/checkout@v2
with:
repository: jesseward/jellyfin-utilities
path: manifest-tools

- uses: actions/setup-dotnet@v1
- uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
dotnet-version: '8.0.x'

- name: Build release via dotnet build...
run: dotnet build Jellyfin.Plugin.Lastfm

- name: Create ZIP archive of plugin release.
run: zip "lastfm_${GIT_TAG_NAME}.zip" /home/runner/work/jellyfin-plugin-lastfm/jellyfin-plugin-lastfm/Jellyfin.Plugin.Lastfm/bin/Debug/net6.0/Jellyfin.Plugin.Lastfm.dll
run: zip "lastfm_${GIT_TAG_NAME}.zip" /home/runner/work/jellyfin-plugin-lastfm/jellyfin-plugin-lastfm/Jellyfin.Plugin.Lastfm/bin/Debug/net8.0/Jellyfin.Plugin.Lastfm.dll

- uses: actions/setup-python@v2
with:
python-version: '3.7'

- name: Fetch existing manifest from repo.
run: curl -o manifest.json "https://jellyfin-repo.jesseward.com/manifest.json"

- name: Update manifest with new version.
run: CK=$(python manifest-tools/md5/md5.py -f "lastfm_${GIT_TAG_NAME}.zip") && python manifest-tools/manifest-generator/manifest.py -app LastFM -f manifest.json version -ver "${GIT_TAG_NAME}" -cl "Jellyfin LastFM build v${GIT_TAG_NAME}" -abi "10.8.0.0" -url "https://github.com/jesseward/jellyfin-plugin-lastfm/releases/download/${GIT_TAG_NAME}/lastfm_${GIT_TAG_NAME}.zip" -ck "${CK}" && cat manifest.json

- name: Create github release and upload binaries.
uses: svenstaro/upload-release-action@v2
with:
Expand Down

0 comments on commit 87c6ff8

Please sign in to comment.