Skip to content

Merge pull request #6 from terraprompt/main #7

Merge pull request #6 from terraprompt/main

Merge pull request #6 from terraprompt/main #7

Workflow file for this run

name: Build & Deploy
on:
push:
branches: [ "prod" ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
submodules: true # Fetch Hugo themes (true OR recursive)
fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod
- name: Create tarball of codebase
run: tar -cf deploy.tar --exclude=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.APP_TOKEN }}'