-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (45 loc) · 1.13 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Release
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
-
name: Build Jellyfin Plugin
uses: oddstr13/jellyfin-plugin-repository-manager@v0.5.0
id: jprm
with:
dotnet-target: net8.0
-
name: Prepare Release Checksums
run: |-
hash="$(md5sum ${{ steps.jprm.outputs.artifact }} | cut -d ' ' -f 1)"
echo "$hash $(basename ${{ steps.jprm.outputs.artifact }})" >> checksums.txt
-
name: Changelog
uses: Bullrich/generate-release-changelog@master
id: changelog
env:
REPO: ${{ github.repository }}
-
name: Release
uses: softprops/action-gh-release@v1
with:
body: ${{ steps.changelog.outputs.changelog }}
files: |
checksums.txt
${{ steps.jprm.outputs.artifact }}