From dc963892f4a7aa3bb07983a92c9c3f7c3b8855e6 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Fri, 8 Mar 2024 08:45:51 -0500 Subject: [PATCH 1/4] add bug report form --- .github/ISSUE_TEMPLATE/bug_report_form.yml | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report_form.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report_form.yml b/.github/ISSUE_TEMPLATE/bug_report_form.yml new file mode 100644 index 0000000..de64642 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report_form.yml @@ -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 + From fbb80159de74bc02e41bbbc5a0edb15f3cc35e5c Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Sat, 9 Mar 2024 07:48:03 -0500 Subject: [PATCH 2/4] Add an action to build release --- .github/workflows/build.yml | 2 +- .github/workflows/release.yml | 58 +++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d413d4a..485fadc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: 'Build Plugin' on: push: - branches: [ "master", "analyzers" ] + branches: [ "master" ] pull_request: branches: [ "master" ] diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..f59a289 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,58 @@ +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: 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 }}.zip From e4c5efb2f385bbe034558a9e296b6607628071be Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Sat, 9 Mar 2024 09:10:18 -0500 Subject: [PATCH 3/4] Attach an md5 file to each release --- .github/workflows/build.yml | 4 ++++ .github/workflows/release.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 485fadc..26e13e3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,6 +51,9 @@ jobs: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll dest: intro-skipper-${{ env.GIT_HASH }}.zip + - name: Generate md5 + 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 +63,5 @@ jobs: prerelease: true title: intro-skipper-${{ env.GIT_HASH }} files: | + intro-skipper-${{ env.GIT_HASH }}.md5 intro-skipper-${{ env.GIT_HASH }}.zip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f59a289..160c8f6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,6 +47,9 @@ jobs: 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: @@ -55,4 +58,5 @@ jobs: 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 From c7a5461522f35dc4a634021bbcd80acc61adb8d3 Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Sat, 9 Mar 2024 09:14:39 -0500 Subject: [PATCH 4/4] ... except no md5 on a pull request --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 26e13e3..c53a71c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,6 +52,7 @@ jobs: 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