-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathaction.yml
55 lines (46 loc) · 2.24 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
48
49
50
51
52
53
54
55
name: 'Deploy static app in branch to gh-pages'
description: |
Manages multiple static apps (or review-apps) for each branch in github pages
runs:
using: 'node16'
main: 'packages/action/dist/index.js'
inputs:
build-cmd:
description: |
This is the build command to generate a production version of your application.
For example, if you use "create-react-app", this would be "yarn build".
IMPORTANT: If your app doesn't use HashRouting (the #/ in url), use process.env.PUBLIC_URL to correctly configure it.
See FAQ and https://www.gatsbyjs.com/docs/path-prefix/ for more info.
Also you can skip building your apps if you did it in a previous step.
Remember that the "dist" path should be pointing to your app's build
branch:
description: |
The branch you configured in github to be the source for gh-pages.
Defaults to "gh-pages".
See https://pages.github.com/ for more info.
default: 'gh-pages'
dist:
description: |
The directory where you build artifacts will live.
For example, if you use create-react-app, it will be the "dist" directory. If you use a monorepo setup, please add the path relative from project's root or an absolute path'
default: 'dist'
slug:
description: |
The default URL for every app is: https://{ GH_USER_NAME }.github.io/{ REPOSITORY }/{ SLUG }/{ BRANCH_NAME }/{ HEAD_COMMIT }
For multiple types of apps inside the same repository (i.e. APP & STORYBOOK), provide an uniq slug.
Example: If you want something like: https://sauloxd.github.io/my-app/storybooks/ft-home-1231bdhb, pass string "storybooks" so it doesn't override other apps inside same respository.
default: 'review-apps'
GITHUB_TOKEN:
description: |
To allow action to comment the app urls in your pull request, please pass {{secrets.GITHUB_TOKEN}} to allow action to interact with your pull request.
To see why it is needed, see: https://github.com/actions/toolkit/tree/main/packages/github
skip-index-html:
description: |
Skip creating and overriden index.html in github pages branch.
default: false
apps:
description: |
JSON config for all apps that will be managed by this action
branding:
icon: 'package'
color: 'green'