Use meta ci
This commit is contained in:
parent
7af4869ba2
commit
144b31bf15
36
.github/workflows/build-dotnet.yml
vendored
36
.github/workflows/build-dotnet.yml
vendored
@ -1,36 +0,0 @@
|
|||||||
name: Build Plugin
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
paths-ignore:
|
|
||||||
- '**/*.md'
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
paths-ignore:
|
|
||||||
- '**/*.md'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Setup .NET
|
|
||||||
uses: actions/setup-dotnet@v2
|
|
||||||
with:
|
|
||||||
dotnet-version: 6.0.x
|
|
||||||
|
|
||||||
- name: Build Jellyfin Plugin
|
|
||||||
uses: oddstr13/jellyfin-plugin-repository-manager@v0.4.2
|
|
||||||
id: jprm
|
|
||||||
with:
|
|
||||||
dotnet-target: net6.0
|
|
||||||
|
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: build-artifact
|
|
||||||
retention-days: 30
|
|
||||||
if-no-files-found: error
|
|
||||||
path: ${{ steps.jprm.outputs.artifact }}
|
|
18
.github/workflows/build.yaml
vendored
Normal file
18
.github/workflows/build.yaml
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: '🏗️ Build Plugin'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- '**/*.md'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- '**/*.md'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call:
|
||||||
|
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/build.yaml@master
|
14
.github/workflows/bump-version.yaml
vendored
Normal file
14
.github/workflows/bump-version.yaml
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
name: "🆙 Bump Version"
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call:
|
||||||
|
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/bump-version.yaml@master
|
||||||
|
with:
|
||||||
|
csproj-name: Jellyfin.Plugin.Template
|
||||||
|
is-unstable: ${{ github.event.release.prerelease }}
|
20
.github/workflows/changelog.yaml
vendored
Normal file
20
.github/workflows/changelog.yaml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: '📝 Create/Update Release Draft & Release Bump PR'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- build.yaml
|
||||||
|
workflow_dispatch:
|
||||||
|
repository_dispatch:
|
||||||
|
types:
|
||||||
|
- update-prep-command
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call:
|
||||||
|
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/changelog.yaml@master
|
||||||
|
with:
|
||||||
|
repository-name: jellyfin/jellyfin-plugin-template
|
||||||
|
secrets:
|
||||||
|
token: ${{ secrets.JF_BOT_TOKEN }}
|
45
.github/workflows/codeql-analysis.yml
vendored
45
.github/workflows/codeql-analysis.yml
vendored
@ -1,45 +0,0 @@
|
|||||||
name: Run CodeQL
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
paths-ignore:
|
|
||||||
- '**/*.md'
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
paths-ignore:
|
|
||||||
- '**/*.md'
|
|
||||||
schedule:
|
|
||||||
- cron: '24 2 * * 4'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
analyze:
|
|
||||||
name: Analyze
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: github.repository == 'jellyfin/jellyfin-plugin-template'
|
|
||||||
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
language: [ 'csharp' ]
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Setup .NET Core
|
|
||||||
uses: actions/setup-dotnet@v2
|
|
||||||
with:
|
|
||||||
dotnet-version: 6.0.x
|
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
|
||||||
uses: github/codeql-action/init@v1
|
|
||||||
with:
|
|
||||||
languages: ${{ matrix.language }}
|
|
||||||
queries: +security-and-quality
|
|
||||||
|
|
||||||
- name: Autobuild
|
|
||||||
uses: github/codeql-action/autobuild@v1
|
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
|
||||||
uses: github/codeql-action/analyze@v1
|
|
13
.github/workflows/command-dispatch.yaml
vendored
Normal file
13
.github/workflows/command-dispatch.yaml
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Allows for the definition of PR and Issue /commands
|
||||||
|
name: '📟 Slash Command Dispatcher'
|
||||||
|
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types:
|
||||||
|
- created
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call:
|
||||||
|
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/command-dispatch.yaml@master
|
||||||
|
secrets:
|
||||||
|
token: ${{ secrets.JF_BOT_TOKEN }}
|
16
.github/workflows/command-rebase.yaml
vendored
Normal file
16
.github/workflows/command-rebase.yaml
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
name: '🔀 PR Rebase Command'
|
||||||
|
|
||||||
|
on:
|
||||||
|
repository_dispatch:
|
||||||
|
types:
|
||||||
|
- rebase-command
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call:
|
||||||
|
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/command-rebase.yaml@master
|
||||||
|
with:
|
||||||
|
rebase-head: ${{ github.event.client_payload.pull_request.head.label }}
|
||||||
|
repository-full-name: ${{ github.event.client_payload.github.payload.repository.full_name }}
|
||||||
|
comment-id: ${{ github.event.client_payload.github.payload.comment.id }}
|
||||||
|
secrets:
|
||||||
|
token: ${{ secrets.JF_BOT_TOKEN }}
|
18
.github/workflows/publish.yaml
vendored
Normal file
18
.github/workflows/publish.yaml
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: '🚀 Publish Plugin'
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- released
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call:
|
||||||
|
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/publish.yaml@master
|
||||||
|
with:
|
||||||
|
version: ${{ github.event.release.tag_name }}
|
||||||
|
is-unstable: ${{ github.event.release.prerelease }}
|
||||||
|
secrets:
|
||||||
|
deploy-host: ${{ secrets.DEPLOY_HOST }}
|
||||||
|
deploy-user: ${{ secrets.DEPLOY_USER }}
|
||||||
|
deploy-key: ${{ secrets.DEPLOY_KEY }}
|
12
.github/workflows/scan-codeql.yaml
vendored
Normal file
12
.github/workflows/scan-codeql.yaml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: '🔬 Run CodeQL'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call:
|
||||||
|
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/scan-codeql.yaml@master
|
||||||
|
with:
|
||||||
|
repository-name: jellyfin/jellyfin-plugin-template
|
12
.github/workflows/sync-labels.yaml
vendored
Normal file
12
.github/workflows/sync-labels.yaml
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name: '🏷️ Sync labels'
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 1 * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call:
|
||||||
|
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/sync-labels.yaml@master
|
||||||
|
secrets:
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
31
.github/workflows/test-dotnet.yml
vendored
31
.github/workflows/test-dotnet.yml
vendored
@ -1,31 +0,0 @@
|
|||||||
name: Test Plugin
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
paths-ignore:
|
|
||||||
- '**/*.md'
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
paths-ignore:
|
|
||||||
- '**/*.md'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Setup .NET Core
|
|
||||||
uses: actions/setup-dotnet@v2
|
|
||||||
with:
|
|
||||||
dotnet-version: 6.0.x
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: dotnet restore
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: dotnet build --configuration Release --no-restore
|
|
||||||
|
|
||||||
- name: Test
|
|
||||||
run: dotnet test --no-restore --verbosity normal
|
|
18
.github/workflows/test.yaml
vendored
Normal file
18
.github/workflows/test.yaml
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
name: '🧪 Test Plugin'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- '**/*.md'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths-ignore:
|
||||||
|
- '**/*.md'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
call:
|
||||||
|
uses: jellyfin/jellyfin-meta-plugins/.github/workflows/test.yaml@master
|
Loading…
x
Reference in New Issue
Block a user