generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add deployPath option for directory-specific deployments (#210)
Co-authored-by: Ryadh <[email protected]>
- Loading branch information
1 parent
722af6e
commit 158d0b2
Showing
4 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -255,3 +255,32 @@ being published, or after a CI run. | |
[MIT](https://github.com/47ng/actions-clever-cloud/blob/master/LICENSE) - Made with ❤️ by [François Best](https://francoisbest.com) | ||
|
||
Using this action at work ? [Sponsor me](https://github.com/sponsors/franky47) to help with support and maintenance. | ||
|
||
## Deploying a Specific Directory | ||
|
||
> ⚠️ Important note about the difference between `working-directory` and `deployPath`: | ||
> | ||
> - `working-directory` (GitHub Actions option) : Only changes the directory where the action runs. All files remain available, only the execution context changes. | ||
> | ||
> - `deployPath` (this action's option) : Specifies exactly which files will be sent to Clever Cloud. Allows deploying only a subset of files, like a `dist` or `build` folder. | ||
|
||
### Example | ||
|
||
```yml | ||
# This will NOT deploy only the build folder: | ||
- uses: 47ng/[email protected] | ||
with: | ||
working-directory: ./build # ❌ Only changes where the action runs | ||
# This will deploy only the build folder: | ||
- uses: 47ng/[email protected] | ||
with: | ||
deployPath: ./build # ✅ Only sends these files to Clever Cloud | ||
``` | ||
|
||
This option is particularly useful for: | ||
- Monorepos where you want to deploy a single package | ||
- Projects where you only want to deploy built/compiled files | ||
- Filtering which files are sent to Clever Cloud | ||
|
||
Note: The path must be relative to the repository root and must exist. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters