forked from sveltejs/sites
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (42 loc) · 1.45 KB
/
docs-deploy-trigger.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: 'Deploy docs'
on:
workflow_dispatch:
inputs:
org:
description: 'the target org for the docs'
required: true
repo:
description: 'the target repo for the docs'
required: true
branch:
description: 'the branch for the docs we want to publish'
required: true
docs_path:
description: 'the path to your root documentation (without a leading slash)'
required: false
default: 'documentation'
pkg_path:
description: 'the path to your packages in a monorepo (without a leading slash)'
required: false
default: 'packages'
project_name:
description: "advanced option to override the project name (if not set, the project name will be the target repo name)"
required: false
jobs:
publish_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: publish
id: projects
uses: tomoam/action-deploy-docs@main
with:
org: ${{github.event.inputs.org}}
repo: ${{github.event.inputs.repo}}
branch: ${{github.event.inputs.branch}}
docs_path: ${{github.event.inputs.docs_path}}
pkg_path: ${{github.event.inputs.pkg_path}}
project_name: ${{github.event.inputs.project_name}}
cf_acc_id: ${{ secrets.CF_ACC_ID }}
cf_ns_id: ${{ secrets.CF_NS_ID }}
cf_token: ${{ secrets.CLOUDFLARE_TOKEN_API_KV }}