An open API service indexing awesome lists of open source software.

https://github.com/kaiofelps/deploy-experiments

CI/CD workflow for deploying to SquareCloud using GitHub actions
https://github.com/kaiofelps/deploy-experiments

actions cd ci deploy workflow

Last synced: about 1 month ago
JSON representation

CI/CD workflow for deploying to SquareCloud using GitHub actions

Awesome Lists containing this project

README

          

# Deploy Experiment
This repository contains a dummy application. The goal is to use GitHub actions and workflows to achieve
an continuous-integration deployment with Square Cloud.

## Scripts
- **build.sh** - contains the basic script to build and pack only necessary files and send them to Square Cloud:
- the generated executable of the web app;
- the html template read by the web app;
- the `package.json` and `package-lock.json` files, to install the dependencies;
- the `dist/` directory with the built Inertia ssr server;
- the `public/` directory (recursively);
- the environment variable is set in the host (in this case, a .env file is placed directly in the host file explorer);
- **run.sh** - the script **Square Cloud** will run on start:
- install the node dependencies;
- sets permissions to execute the app executable;
- runs the executable.

`build.sh` is actually the procedure to be placed in the github workflow and is responsible for building and bundling the application.