Skip to content

Commit 889a4fc

Browse files
Sponefranky47
authored andcommitted
Add prerequisite to README
1 parent 24c562d commit 889a4fc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,26 @@
99
GitHub action to deploy your application to
1010
[Clever Cloud](https://clever-cloud.com).
1111

12+
## Prerequisite
13+
14+
⚠️ When creating an application on Clever Cloud, you have to choose
15+
between deploying "*from a local repository*" (using Clever CLI, Git
16+
or SFTP) or "*from a Github repository*" (using a webhook setup
17+
automatically by Clever Cloud). Only the first type of applications
18+
can be deployed using this Github action.
19+
20+
In your project's `.clever.json`, if the `deploy_url` value starts
21+
with `https://github.com/`, your application is meant to be deployed
22+
"*from a Github repository*" only.
23+
If you try deploying it with this Github action, you will get the
24+
following message in your logs: `[ERROR] HTTP Error: 401 Authorization
25+
Required`.
26+
27+
Currently (early 2023), the only workaround is to create a new
28+
application on Clever Cloud, that deploys "*from a local repository*",
29+
then remove the Clever Cloud webhook that has been created on your
30+
Github repository.
31+
1232
## Usage
1333

1434
In your workflow file:

0 commit comments

Comments
 (0)