Merge pull request #70 from RepoDevil/upstream

Reporting and release upgrades
This commit is contained in:
TwistedUmbrellaX 2024-03-09 09:18:21 -05:00 committed by GitHub
commit fd636706cc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 122 additions and 1 deletions

View File

@ -0,0 +1,54 @@
name: "Bug report"
description: "Create a report to help us improve"
title: "[Bug]: "
labels: [bug]
body:
- type: textarea
attributes:
label: Describe the bug
description: Also tell us, what did you expect to happen?
placeholder: |
The more information that you are able to provide, the better. Did you do anything before this happened? Did you upgrade or change anything? Any screenshots or logs you can provide will be helpful.
This is my issue.
Steps to Reproduce
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: true
- type: input
attributes:
label: Jellyfin installation method
placeholder: Docker, Windows installer, etc.
validations:
required: true
- type: input
attributes:
label: Container image and tag
description: Only fill in this field if you are running Jellyfin in a container
placeholder: jellyfin/jellyfin:10.8.7, jellyfin-intro-skipper:latest, etc.
- type: input
attributes:
label: Operating System
placeholder: Debian 11, Windows 11, etc.
validations:
required: true
- type: textarea
attributes:
label: Support Bundle
placeholder: go to Dashboard -> Plugins -> Intro Skipper -> Support Bundle (at the bottom of the page) and paste the contents of the textbox here
validations:
required: true
- type: textarea
attributes:
label: Jellyfin logs
placeholder: Paste any relevant logs here

View File

@ -2,7 +2,7 @@ name: 'Build Plugin'
on:
push:
branches: [ "master", "analyzers" ]
branches: [ "master" ]
pull_request:
branches: [ "master" ]
@ -51,6 +51,10 @@ jobs:
ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
dest: intro-skipper-${{ env.GIT_HASH }}.zip
- name: Generate md5
if: github.event_name != 'pull_request'
run: md5sum intro-skipper-${{ env.GIT_HASH }}.zip > intro-skipper-${{ env.GIT_HASH }}.md5
- name: Publish prerelease
uses: 8bitDream/action-github-releases@v1.0.0
if: github.event_name != 'pull_request'
@ -60,4 +64,5 @@ jobs:
prerelease: true
title: intro-skipper-${{ env.GIT_HASH }}
files: |
intro-skipper-${{ env.GIT_HASH }}.md5
intro-skipper-${{ env.GIT_HASH }}.zip

62
.github/workflows/release.yml vendored Normal file
View File

@ -0,0 +1,62 @@
name: 'Build Plugin'
on:
workflow_dispatch:
inputs:
version:
description: 'v0.1'
required: true
type: string
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x
- name: Restore dependencies
run: dotnet restore
- name: Embed version info
run: echo "${{ github.sha }}" > ConfusedPolarBear.Plugin.IntroSkipper/Configuration/version.txt
- name: Build
run: dotnet build --no-restore
- name: Upload artifact
uses: actions/upload-artifact@v4.3.1
with:
name: ConfusedPolarBear.Plugin.IntroSkipper-${{ github.event.head_commit.message }}.dll
path: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
if-no-files-found: error
- name: Create archive
uses: vimtor/action-zip@v1.2
with:
files: |
ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
dest: intro-skipper-${{ github.event.head_commit.message }}.zip
- name: Generate md5
run: md5sum intro-skipper-${{ github.event.head_commit.message }}.zip > intro-skipper-${{ github.event.head_commit.message }}.md5
- name: Publish release
uses: 8bitDream/action-github-releases@v1.0.0
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ github.event.head_commit.message }}
prerelease: false
title: intro-skipper-${{ github.event.head_commit.message }}
files: |
intro-skipper-${{ github.event.head_commit.message }}.md5
intro-skipper-${{ github.event.head_commit.message }}.zip