-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
47 lines (43 loc) · 1.76 KB
/
action.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
name: SDK Upload
description: Upload a directory to the Ably SDK Team S3 bucket.
author: Ably
branding:
icon: upload-cloud
color: orange
runs:
using: node16
main: dist/index.js
inputs:
sourcePath:
description: Path to a directory containing the files to upload, relative to the root directory of the repository.
required: true
githubToken:
description: This should be a token with access to the repository scoped in as a secret. This will be available in the GitHub runner environment by default as `secrets.GITHUB_TOKEN`.
required: true
artifactName:
description: |
The name of the artifact to be uploaded, for example `docs`.
If supplied then it is used as the directory name within S3 for the uploaded artifacts, as well as within the GitHub deployment environment name.
If not supplied or supplied as an empty string then the artifacts are uploaded to S3 at root for this deployment context.
required: false
default: ''
landingPagePath:
description: |
The extension applied to the baseURL to aid in navigating to the correct page. e.g. if this value is "/documentation/home", then opening a deployment will navigate to this page.
required: false
default: ''
mode:
description: |
Specify `"preempt"` in order use this action before content build in order to output the URL base.
required: false
outputs:
url-base:
description: |
The URL base. For example:
https://sdk.ably.com/builds/ably/ably-flutter/pull/307/dartdoc/
When used in the Flutter SDK repository, with `artifactName` as `"dartdoc"`.
base-path:
description: |
The base path. For example:
/builds/ably/ably-flutter/pull/307/dartdoc/
Useful when needing to know the relative path.