name: Build & Deploy on: push: branches: [ "dev" ] pull_request: branches: [ "dev" ] jobs: build-and-deploy: runs-on: ubuntu-latest steps: - name: Check out repository uses: actions/checkout@v4 - name: Build and test your app (customize as needed) run: | # Add your build and test commands here # For example: # npm install # npm run build # npm run test - name: Create deploy.tar uses: a7ul/tar-action@v1.1.0 with: command: c cwd: "./" files: | scripts/build_and_run.sh captain-definition outPath: deploy.tar - name: Deploy App to CapRover uses: caprover/deploy-from-github@v1.0.1 with: server: '${{ secrets.CAPROVER_SERVER }}' app: '${{ secrets.APP_NAME }}' token: '${{ secrets.MANAGING_APPS }}'