Skip to content

discloud/deploy-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

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 *
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@v4 # Required to use the file system
      - uses: discloud/deploy-action@v1
        with:
          token: ${{ secrets.DISCLOUD_TOKEN }} # Required
          # app_id: "ID"
          # 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

List of glob patterns example

glob: |
  **
  pathToFile
  pathToDirectory/**