You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/BUG_REPORT.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ labels:
13
13
<!-- Steps to reproduce the behavior. -->
14
14
15
15
**Logs**
16
-
<!-- Please provide your deployment logs and a link or sample to/of your workflow. -->
16
+
<!-- Please provide your deployment logs and a link or sample to/of your workflow. If the error message isn't revealing the problem please set ACTIONS_STEP_DEBUG to true in your repository's secrets menu and run the workflow again. -->
17
17
18
18
**Additional Comments**
19
19
<!--Add any other context about the problem here. -->
Copy file name to clipboardExpand all lines: .github/ISSUE_TEMPLATE/SUPPORT.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ labels:
10
10
<!-- Please provide a clear and concise description of what the problem is. Please be sure to read the README first! -->
11
11
12
12
**Logs**
13
-
<!-- Please provide your deployment logs and a link or sample to/of your workflow. -->
13
+
<!-- Please provide your deployment logs and a link or sample to/of your workflow. If the error message isn't revealing the problem please set ACTIONS_STEP_DEBUG to true in your repository's secrets menu and run the workflow again. -->
14
14
15
15
**Additional Comments**
16
16
<!-- Add any other context about the issue here. -->
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,17 +115,17 @@ For more information regarding the [action interface please click here](https://
115
115
116
116
## Configuration 📁
117
117
118
-
The `with` portion of the workflow **must** be configured before the action will work. You can add these in the `with` section found in the examples above. Any `secrets` must be referenced using the bracket syntax and stored in the GitHub repositories`Settings/Secrets` menu. You can learn more about setting environment variables with GitHub actions [here](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets).
118
+
The `with` portion of the workflow **must** be configured before the action will work. You can add these in the `with` section found in the examples above. Any `secrets` must be referenced using the bracket syntax and stored in the GitHub repository's`Settings/Secrets` menu. You can learn more about setting environment variables with GitHub actions [here](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets).
119
119
120
120
#### Required Setup
121
121
122
122
One of the following deployment options must be configured.
|`GITHUB_TOKEN`| In order for GitHub to trigger the rebuild of your page you must provide the action with the repository's provided GitHub token. This can be referenced in the workflow `yml` file by using `${{ secrets.GITHUB_TOKEN }}`. If you experience any issues with your changes not being reflected after the deployment it may be neccersary to use either the `SSH` or `ACCESS_TOKEN` options. |`secrets / with`|**Yes**|
126
127
|`SSH`| You can configure the action to deploy using SSH by setting this option to `true`. For more information on how to add your ssh key pair please refer to the [Using a Deploy Key section of this README](https://github.com/JamesIves/github-pages-deploy-action/tree/dev#using-an-ssh-deploy-key-). |`with`|**Yes**|
127
-
|`ACCESS_TOKEN`| Depending on the repository permissions you may need to provide the action with a GitHub personal access token instead of the provided GitHub token in order to deploy. You can [learn more about how to generate one here](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line). **This should be stored as a secret**. |`secrets / with`|**Yes**|
128
-
|`GITHUB_TOKEN`| In order for GitHub to trigger the rebuild of your page you must provide the action with the repositories provided GitHub token. This can be referenced in the workflow `yml` file by using `${{ secrets.GITHUB_TOKEN }}`. **Please note there is currently an issue affecting the use of this token which makes it so it only works with private repositories, [you can learn more here](https://github.com/JamesIves/github-pages-deploy-action/issues/5)**. |`secrets / with`|**Yes**|
128
+
|`ACCESS_TOKEN`| Depending on the repository's permissions you may need to provide the action with a GitHub personal access token instead of the provided GitHub token in order to deploy. You can [learn more about how to generate one here](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line). **This should be stored as a secret**. |`secrets / with`|**Yes**|
129
129
130
130
In addition to the deployment options you must also configure the following.
131
131
@@ -161,7 +161,7 @@ If you'd prefer to use an SSH deploy key as opposed to a token you must first ge
Once you've generated the key pair you must add the contents of the public key within your repositories[deploy keys menu](https://developer.github.com/v3/guides/managing-deploy-keys/). You can find this option by going to `Settings > Deploy Keys`, you can name the public key whatever you want, but you **do** need to give it write access. Afterwards add the contents of the private key to the `Settings > Secrets` menu as `DEPLOY_KEY`.
164
+
Once you've generated the key pair you must add the contents of the public key within your repository's[deploy keys menu](https://developer.github.com/v3/guides/managing-deploy-keys/). You can find this option by going to `Settings > Deploy Keys`, you can name the public key whatever you want, but you **do** need to give it write access. Afterwards add the contents of the private key to the `Settings > Secrets` menu as `DEPLOY_KEY`.
165
165
166
166
With this configured you must add the `ssh-agent` step to your workflow and set `SSH` to `true` within the deploy action. There are several SSH actions available on the [GitHub marketplace](https://github.com/marketplace?type=actions) for you to choose from.
Copy file name to clipboardExpand all lines: __tests__/git.test.ts
+22-3Lines changed: 22 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -89,9 +89,28 @@ describe('git', () => {
89
89
name: 'asd',
90
90
email: 'as@cat'
91
91
},
92
-
gitHubToken: null,
93
-
accessToken: null,
94
-
ssh: null
92
+
})
93
+
94
+
try{
95
+
awaitinit(action)
96
+
}catch(e){
97
+
expect(execute).toBeCalledTimes(0)
98
+
expect(e.message).toMatch(
99
+
'There was an error initializing the repository: No deployment token/method was provided. You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true. ❌'
100
+
)
101
+
}
102
+
})
103
+
104
+
it('should fail if access token is defined but it is an empty string',async()=>{
'No deployment token/method was provided. You must provide the action with either a Personal Access Token or the GitHub Token secret in order to deploy. If you wish to use an ssh deploy token then you must set SSH to true.'
0 commit comments