Files
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: yaml: line 9: did not find expected '-' indicator

28 lines
656 B
YAML

name: Deploy to CapRover
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pack it up
run: |
tar -cvf deploy.tar \
captain-definition \
composer.json \
composer.lock \
app/ \
docker/wordpress/Dockerfile \
docker/wordpress/scripts/
- name: Deploy to CapRover
uses: caprover/deploy-from-github@v1.0.1
with:
server: ${{ vars.CAPROVER_SERVER }}
app: ${{ vars.APP_NAME }}
token: ${{ secrets.CAPROVER_APP_TOKEN }}