The easiest way to integrate your Square Cloud app with GIT, commit your app from github workflows.
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.
token- Your Square Cloud api token. Get your token from the Square Cloud dashboardRequiredcommand- The command you want to executeOptionalinstall-only- In case you just want to install the CLI in your workflowOptionalworkdir- The directory you want to work with the ActionOptional
Useful if you just want update the source code of your application
name: Publishon:
push:
branches:
- masterjobs:
publish-production:
name: Publishruns-on: ubuntu-lateststeps:
- name: Setup Square Clouduses: squarecloudofc/github-action@v2# in "command" you can add the --restart flag to restart your application after the commitwith:
command: commit ${{ secrets.SQUARE_APPLICATION_ID }}token: '${{ secrets.SQUARE_TOKEN }}'We are currently accepting all kinds of suggestions and contributions. All you have to do is open an Issue or a Pull Request!
