Automate operations on Discloud with this GitHub Action: manage applications, upload files, and monitor status in streamlined workflows.
Add the following to your workflow:
jobs:
discloud:
runs-on: ubuntu-latest
steps:
- name: Discloud Action Upload
uses: marco-quicula/discloud-api-action@v1
with:
# Insert the Discloud API token.
discloud_api_token: ${{ secrets.DISCLOUD_API_TOKEN }}
# Insert the command according to the command list.
command: "<command>"
# Insert the parameters according to the parameter list for each command.
<parameter>: <value>
-
discloud_api_token
: This is the API token required for authentication. You can obtain it from the Discloud control panel. -
command
: This specifies the action to be executed. The available options for this parameter are listed in the Command List table below.
<parameter>
: The parameters that are required for each command are detailed in the Parameter List by Command section below. Some parameters may be optional depending on the command.
GitHub Action to interact with the Discloud API. Supports the following commands:
Command | Description |
---|---|
userinfo | Returns user information. |
app-status | Check the status of an application. |
app-delete | Remove an application by ID |
upload-zip | Upload a (.zip) file to Discloud. |
app-commit | Changes an application |
Parameter List by Command:
Command | Parameter | Required | Default Value | Domain | Description | Example |
---|---|---|---|---|---|---|
userinfo | N/A | N/A | N/A | N/A | N/A | N/A |
app-status | appId | true | N/A | N/A | Application ID or all for all apps. |
appId: my-app |
app-delete | appId | true | N/A | N/A | Application ID or all for all apps. |
appId: my-app |
upload-zip | file | true | N/A | N/A | File (.zip) to be uploaded. | file: "./path/to/file.zip" |
actionIfExists | false | ERROR |
ERROR|DELETE|COMMIT |
Action to be taken if the application is already active. | actionIfExist: DELETE | |
app-commit | file | true | N/A | N/A | File (.zip) to be uploaded. | file: path/to/file.zip" |
main | develop |
---|---|
Name | Version | Estimated Delivery Date | Status | Date of Completion |
---|---|---|---|---|
First Version Published in Marketplace | v0.1.0 | December 28, 2024 | Done | December 26, 2024 |
Improved Features & Usability | v0.2.0 | January 26, 2025 | In-Progress | - |
Feel free to contribute by opening issues or submitting pull requests. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the Apache License 2.0. See the LICENSE file for more details.
This project adheres to the Contributor Covenant. You can view the full text of our [Code of Conduct] in the specific tab of this project.
Special thanks to DisCloud for their amazing API.
IMPORTANT: This project does not imply any sponsorship, endorsement, or affiliation with Discloud.