@@ -36,6 +36,9 @@ name: website
36
36
37
37
on : push
38
38
39
+ permissions :
40
+ contents : write
41
+
39
42
jobs :
40
43
publish :
41
44
runs-on : ubuntu-latest
@@ -122,31 +125,31 @@ check availability of GitHub Pages before deploying:
122
125
123
126
Following inputs can be used as ` step.with` keys
124
127
125
- | Name | Type | Description |
126
- |----------------------|---------| --------------------------------------------------------------------------------|
127
- | `domain` | String | Git domain (default `github.com`) |
128
- | `repo` | String | GitHub repository where assets will be deployed (default `$GITHUB_REPOSITORY`) |
129
- | `target_branch` | String | Git branch where assets will be deployed (default `gh-pages`) |
130
- | `keep_history` | Bool | Create incremental commit instead of doing push force (default `false`) |
131
- | `allow_empty_commit` | Bool | Allow an empty commit to be created (default `true`) |
132
- | `build_dir` | String | Build directory to deploy (**required**) |
133
- | `absolute_build_dir` | Bool | Whether to treat `build_dir` as an absolute path (defaults to `false`, making it relative to the working directory) |
134
- | `follow_symlinks` | Bool | If enabled, the content of symbolic links will be copied (default `false`) |
135
- | `committer` | String | Committer name and email address as `Display Name <[email protected] >` (defaults to the GitHub Actions bot user) |
136
- | `author` | String | Author name and email address as `Display Name <[email protected] >` (defaults to the GitHub Actions bot user) |
137
- | `commit_message` | String | Commit message (default `Deploy to GitHub pages`) |
138
- | `fqdn` | String | Write the given domain name to the CNAME file |
139
- | `jekyll` | Bool | Allow Jekyll to build your site (default `true`) |
140
- | `dry_run` | Bool | If enabled, nothing will be pushed (default `false`) |
141
- | `verbose` | Bool | Enable verbose output (default `false`) |
128
+ | Name | Type | Description |
129
+ |----------------------|--------|------------------------------------- --------------------------------------------------------------------------------|
130
+ | `domain` | String | Git domain (default `github.com`) |
131
+ | `repo` | String | GitHub repository where assets will be deployed (default `$GITHUB_REPOSITORY`) |
132
+ | `target_branch` | String | Git branch where assets will be deployed (default `gh-pages`) |
133
+ | `keep_history` | Bool | Create incremental commit instead of doing push force (default `false`) |
134
+ | `allow_empty_commit` | Bool | Allow an empty commit to be created (default `true`) |
135
+ | `build_dir` | String | Build directory to deploy (**required**) |
136
+ | `absolute_build_dir` | Bool | Whether to treat `build_dir` as an absolute path (defaults to `false`, making it relative to the working directory) |
137
+ | `follow_symlinks` | Bool | If enabled, the content of symbolic links will be copied (default `false`) |
138
+ | `committer` | String | Committer name and email address as `Display Name <[email protected] >` (defaults to the GitHub Actions bot user) |
139
+ | `author` | String | Author name and email address as `Display Name <[email protected] >` (defaults to the GitHub Actions bot user) |
140
+ | `commit_message` | String | Commit message (default `Deploy to GitHub pages`) |
141
+ | `fqdn` | String | Write the given domain name to the CNAME file |
142
+ | `jekyll` | Bool | Allow Jekyll to build your site (default `true`) |
143
+ | `dry_run` | Bool | If enabled, nothing will be pushed (default `false`) |
144
+ | `verbose` | Bool | Enable verbose output (default `false`) |
142
145
143
146
# ## environment variables
144
147
145
148
Following environment variables can be used as `step.env` keys
146
149
147
- | Name | Description |
148
- |----------------|---------------------------------------|
149
- | `GITHUB_TOKEN` | [GITHUB_TOKEN](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token) as provided by `secrets` |
150
+ | Name | Description |
151
+ |----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------- |
152
+ | `GITHUB_TOKEN` | [GITHUB_TOKEN](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token) as provided by `secrets` |
150
153
| `GH_PAT` | Use a [Personal Access Token](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/) if you want to deploy to another repo |
151
154
152
155
# # Contributing
0 commit comments