This repository has been archived by the owner on Oct 20, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
80 lines (69 loc) · 1.99 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
on:
workflow_call:
inputs:
publish:
required: false
default: false
type: boolean
secrets:
token:
required: false
jobs:
build:
name: Build Blog
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
- name: Setup Hugo
uses: peaceiris/[email protected]
with:
hugo-version: '0.100.1'
extended: true
- name: Build
run: hugo --minify
- name: Upload Artifacts
uses: actions/[email protected]
with:
path: public
publish:
name: Publish Blog
if: ${{ inputs.publish }}
runs-on: ubuntu-latest
needs:
- build
steps:
- name: Download Artifacts
uses: actions/[email protected]
- 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
- name: Remove Blog release.zip
run: rm release.zip
- uses: robinraju/[email protected]
with:
repository: "jellyfin/jellyfin-docs"
latest: true
fileName: "release.zip"
- name: Include Docs
run: |-
unzip -d docs release.zip
mv docs/artifact artifact/docs
- 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/
user_name: 'jellyfin-bot'
user_email: '[email protected]'
full_commit_message: 'feat(blog): deploy ${{ github.repository }}@${{ github.sha }}'
cname: jellyfin.org