This repository has been archived by the owner on Sep 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 220
94 lines (79 loc) · 2.4 KB
/
_meta.yaml
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
on:
workflow_call:
inputs:
publish:
required: false
default: false
type: boolean
secrets:
token:
required: false
jobs:
lint:
name: Run Markdownlint
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Setup Problem Matcher
uses: xt0rted/[email protected]
- name: Run Markdownlint
run: npx --package markdownlint-cli markdownlint '**/*.md' --ignore node_modules --ignore src
build:
name: Build Docs
runs-on: windows-latest
needs:
- lint
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Initialize Git Submodules
run: git submodule update --init --recursive
- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: "6.0.x"
- name: Build Jellyfin
run: dotnet build --configuration Release ./src/jellyfin
- name: Setup nuget
uses: nuget/[email protected]
with:
nuget-version: '6.x'
- name: Install DocFX
run: nuget install docfx.console
- name: Run DocFX
run: .\docfx.console*\tools\docfx.exe docfx.json
- name: Upload Artifacts
uses: actions/[email protected]
with:
path: _site
publish:
name: Publish Docs
if: ${{ inputs.publish }}
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download Artifacts
uses: actions/[email protected]
- name: Upload Artifacts To Github Pages
uses: peaceiris/[email protected]
with:
personal_token: '${{ secrets.token }}'
external_repository: jellyfin/jellyfin.github.io
publish_branch: master
publish_dir: ./artifact/
destination_dir: docs
user_name: 'jellyfin-bot'
user_email: '[email protected]'
full_commit_message: 'feat(docs): deploy ${{ github.repository }}@${{ github.sha }}'
- name: Compress Artifacts
run: zip -r -D release.zip ./artifact/*
- name: Publish Artifacts As GitHub Release
uses: marvinpinto/[email protected]
with:
repo_token: '${{ secrets.token }}'
automatic_release_tag: latest
prerelease: false
files: |
release.zip