Skip to content

Discloud Deploy Action

Actions
Deploy your Discloud app
v1.4.3
Latest
Star (1)

Discloud Deploy Action

Build

This action deploys your application to Discloud

Useful links

Discord

Inputs

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_id can be ignored if the discloud.config file with the ID property exists in your repository
** glob can be a list of glob patterns, see example

Example usage

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@v6 # 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

Using config

You can use discloud.config file to specify app_id

See example

Ignoring files

You can use the .discloudignore file to ignore files during deploy

See example

Using glob property

You can use the glob property to specify which files to upload

Using env property

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 will overwrite the .env file on the host. ⚠️

List of glob patterns example

glob: |
  **
  pathToFile
  pathToDirectory/**

Discloud Deploy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Deploy your Discloud app
v1.4.3
Latest

Discloud Deploy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.