Skip to content

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

Notifications You must be signed in to change notification settings

squarecloudofc/github-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

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!

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •