-
Notifications
You must be signed in to change notification settings - Fork 76
44 lines (35 loc) · 1.13 KB
/
bundle-components.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
name: Bundle component library + style guide into web site
on:
repository_dispatch:
types: [bundle-components-library]
jobs:
bundle:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Bundle Storybook
run: ./scripts/bundleComponentGuide.sh
- name: Bundle latest API docs
run: curl https://raw.githubusercontent.com/owncast/owncast/develop/docs/api/index.html -o static/api/latest/index.html
- name: Commit changes
uses: EndBug/add-and-commit@v5
with:
author_name: Owncast
author_email: [email protected]
message: "Update component library and style guide"
add: "static"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.120.4"
extended: true
- name: Build
run: npm install && hugo --minify
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public