Skip to content

Commit

Permalink
caprover-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusfillipe committed Feb 17, 2024
1 parent 93be5cb commit 63fe2d3
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ jobs:
continue-on-error: true

deploy:
name: Deploy app
name: Deploy prod app to https://g4f-api.fly.dev/
# Only from main branch
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
Expand All @@ -41,3 +42,22 @@ jobs:
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}


deploy:
# Always deploy
name: Deploy dev app to https://g4f-api.cloud.mattf.one/
steps:
- uses: a7ul/tar-action@v1.1.0
with:
command: c
cwd: "./"
files: ./*
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.APP_TOKEN }}'

0 comments on commit 63fe2d3

Please sign in to comment.