This action deploys your application to Discloud
| Property | Description | Required | Default |
|---|---|---|---|
| token | Your account Discloud token | ☑️ | |
| app_id | Your app ID in Discloud * | ||
| env | Environment variables to add to zip | ||
| env_file | Env file name | .env |
|
| glob | Use the glob pattern to specify files to upload ** |
** |
|
| team | Specify if the app is a team app. Ignore if the app is yours |
false |
*
app_idcan be ignored if thediscloud.configfile with theIDproperty exists in your repository
**globcan be a list of glob patterns, see example
name: Discloud Deploy Action on: # push: # On any commit release: types: [created] # On release created workflow_dispatch: # Manual running permissions: contents: read jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 # Required to use the file system - uses: discloud/deploy-action@v1 with: token: ${{ secrets.DISCLOUD_TOKEN }} # Required # app_id: "ID" # env: ${{ secrets.ENV }} # env_file: .env # glob: ** # All files # team: true
You can use discloud.config file to specify app_id
See example
You can use the .discloudignore file to ignore files during deploy
See example
You can use the glob property to specify which files to upload
Set the env property to send environment variables in the zip file.
The env_file property is completely optional and the default value is .env.
See creating secrets for a repository
⚠️ Note that setting this property willoverwritethe.envfile on the host.⚠️
glob: | ** pathToFile pathToDirectory/**