Skip to content

Square Cloud Action

Actions
Deploy your application to square cloud using Github Actions
v2.0.0
Latest
Star (18)

Tags

 (1)

Square Cloud

Square Cloud Action

The easiest way to integrate your Square Cloud app with GIT, commit your app from github workflows.

Usage

Pre-requisites

Create a .yml workflow file in the .github/workflows directory. Here is an example workflow. If you want to know more about workflows, see the official GitHub Help Documentation on how to create a workflow file

You also need to configure your GitHub secrets, of course, to not let your Token API be exposed.

Inputs

  • token - Your Square Cloud api token. Get your token from the Square Cloud dashboard Required
  • command - The command you want to execute Optional
  • install-only - In case you just want to install the CLI in your workflow Optional
  • workdir - The directory you want to work with the Action Optional

Example Workflow

Commiting your project to Square Cloud

Useful if you just want update the source code of your application

name: Publish
on:
  push:
    branches:
      - master
jobs:
  publish-production:
    name: Publish
    runs-on: ubuntu-latest
    steps:
      - name: Setup Square Cloud
        uses: squarecloudofc/github-action@v2
        # in the run command you can add the --restart flag to restart your application after the commit 
        with:
          run: commit ${{ secrets.SQUARE_APPLICATION_ID }}
          token: '${{ secrets.SQUARE_TOKEN }}'

Contributors

We are currently accepting all kinds of suggestions and contributions. All you have to do is open an Issue or a Pull Request!

Square Cloud 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 application to square cloud using Github Actions
v2.0.0
Latest

Tags

 (1)

Square Cloud 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.