-
Notifications
You must be signed in to change notification settings - Fork 395
55 lines (51 loc) · 1.81 KB
/
publish-docs.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
name: Publish documents
on: [workflow_dispatch]
env:
WORKING_DIRECTORY: ./packages/toast-ui.grid
CACHED_DEPENDENCY_PATHS: ./packages/toast-ui.grid/node_modules
ROOT_DEPENDENCY_PATHS: ./node_modules
CACHED_BUILD_PATHS: ./packages/toast-ui.grid/dist
BUILD_CACHE_KEY: ${{ github.sha }}
jobs:
install_dependencies:
name: Install dependencies
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: install_dependencies
id: cache-keys
uses: ./.github/actions/install-dependencies
outputs:
root_cache_key: ${{ steps.cache-keys.outputs.root_cache_key }}
grid_cache_key: ${{ steps.cache-keys.outputs.grid_cache_key }}
build:
name: Build
needs: [install_dependencies]
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: build
uses: ./.github/actions/build-cache
with:
ROOT_CACHE_KEY: ${{ needs.install_dependencies.outputs.root_cache_key }}
GRID_CACHE_KEY: ${{ needs.install_dependencies.outputs.grid_cache_key }}
BUILD_CACHE_KEY: ${{ env.BUILD_CACHE_KEY }}
outputs:
root_cache_key: ${{ needs.install_dependencies.outputs.root_cache_key }}
grid_cache_key: ${{ needs.install_dependencies.outputs.grid_cache_key }}
publish-docs:
needs: [build]
name: Publish documents
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v2
- name: Publish documents
uses: ./.github/actions/publish-docs
with:
ROOT_CACHE_KEY: ${{ needs.build.outputs.root_cache_key }}
GRID_CACHE_KEY: ${{ needs.build.outputs.grid_cache_key }}
BUILD_CACHE_KEY: ${{ env.BUILD_CACHE_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}