This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 23
148 lines (139 loc) · 5.55 KB
/
documentation.yml
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
name: Documentation Website
on:
push:
branches:
- develop
paths:
- 'docs/**'
- '.all-contributorsrc'
- 'resources/Blendfiles/House.blend'
- 'resources/Blendfiles/Blender-Starter.blend'
- 'resources/Blendfiles/Tiles.blend'
- 'resources/ColorPalettes/**'
- 'resources/Windscale/**'
workflow_dispatch:
workflow_call:
inputs:
ref:
default: ''
required: true
description: The ref to checkout.
type: string
schedule:
- cron: '5 17 * * 1' # deploy the documentation website every monday after the new video went live
env:
HUGO_YOUTUBE_API_KEY: ${{ secrets.HUGO_YOUTUBE_API_KEY }}
jobs:
convert-color-palette-summer:
uses: ./.github/workflows/psd-to-png.yml
with:
ref: ${{ inputs.ref }}
input-file: ./resources/ColorPalettes/ColorPalette_Summer.psd
output-filename: ColorPalette_Summer.png
convert-windscale:
uses: ./.github/workflows/psd-to-png.yml
with:
ref: ${{ inputs.ref }}
input-file: ./resources/Windscale/Windscale.psd
output-filename: Windscale.png
convert-color-palette-summer-description:
uses: ./.github/workflows/psd-to-png.yml
with:
ref: ${{ inputs.ref }}
input-file: ./resources/ColorPalettes/ColorPalette_Summer_Description.psd
output-filename: ColorPalette_Summer_Description.png
create-blender-starter-kit:
runs-on: ubuntu-latest
needs: [convert-color-palette-summer, convert-windscale]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- run: mkdir BlenderStarterKit
- run: cp ./resources/Blendfiles/House.blend ./BlenderStarterKit
- run: cp ./resources/Blendfiles/Tiles.blend ./BlenderStarterKit
- run: cp ./resources/Blendfiles/Blender-Starter.blend ./BlenderStarterKit
- run: mkdir ./BlenderStarterKit/scripts
- run: cp ./docs/content/docs/docs-visual/blender/assets/BoundfoxStudios-Export.py ./BlenderStarterKit/scripts
- uses: actions/download-artifact@v4
with:
name: ColorPalette_Summer.png
path: ./BlenderStarterKit/textures/
- uses: actions/download-artifact@v4
with:
name: Windscale.png
path: ./BlenderStarterKit/textures
- run: zip -r ./BlenderStarterKit/BlenderStarterKit.zip ./BlenderStarterKit/*
- uses: actions/upload-artifact@v4
with:
name: BlenderStarterKit
path: ./BlenderStarterKit/BlenderStarterKit.zip
create-blender-studio:
runs-on: ubuntu-latest
needs: [convert-color-palette-summer]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- run: mkdir BlenderStudio
- run: cp ./resources/Blendfiles/Blender-Studio.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Bush.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Container.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Fence.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Flower.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Grass.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/House.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/LogPile.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Mushroom.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Reed.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Sunflower.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Tent.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Tiles.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Towers.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Transitions.blend ./BlenderStudio
- run: cp ./resources/Blendfiles/Tree.blend ./BlenderStudio
- run: mkdir ./BlenderStudio/scripts
- run: cp ./docs/content/docs/docs-visual/blender/assets/BoundfoxStudios-Export.py ./BlenderStudio/scripts
- uses: actions/download-artifact@v4
with:
name: ColorPalette_Summer.png
path: ./BlenderStudio/textures/
- run: zip -r ./BlenderStudio/BlenderStudio.zip ./BlenderStudio/*
- uses: actions/upload-artifact@v4
with:
name: BlenderStudio
path: ./BlenderStudio/BlenderStudio.zip
check-broken-links:
runs-on: ubuntu-latest
needs: [create-blender-starter-kit, create-blender-studio, convert-color-palette-summer, convert-color-palette-summer-description]
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- uses: ./.github/actions/download-all-artifacts
- uses: ./.github/actions/hugo-check-broken-links
deploy:
runs-on: ubuntu-latest
if: github.event_name != 'workflow_call'
needs: [check-broken-links, create-blender-starter-kit, create-blender-studio, convert-color-palette-summer, convert-color-palette-summer-description]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/download-all-artifacts
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
working-directory: docs
- run: npm run publish
working-directory: docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/public
user_name: "Boundfox Studios Publish Bot"
user_email: "[email protected]"
commit_message: ":rocket: Deploy Docs"
cname: docs.fairytaledefender.de