Skip to content

Commit

Permalink
preprod deployment of main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed May 23, 2024
1 parent 1ac83dc commit cf0456e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
push:
tags:
- '*'
branches:
- main

jobs:
build-and-deploy:
Expand Down Expand Up @@ -42,9 +44,9 @@ jobs:
onboarding.json
outPath: deploy.tar

- uses: caprover/[email protected]
- name: Deploy to CapRover
uses: caprover/[email protected]
with:
server: '${{ secrets.CAPROVER_SERVER }}'
app: '${{ secrets.APP_NAME }}'
app: ${{ github.ref == 'refs/heads/main' && secrets.MAIN_APP_NAME || secrets.APP_NAME }}
token: '${{ secrets.APP_TOKEN }}'

0 comments on commit cf0456e

Please sign in to comment.