From d1d967f6dad15e624d0e5d5bfb731ade68b05712 Mon Sep 17 00:00:00 2001 From: Matheus Fillipe Date: Sat, 17 Feb 2024 21:06:49 +0100 Subject: [PATCH] ci: avoiding having to build tarball This also makes so we see the git commit hash in caprover's UI --- .github/workflows/workflow.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/workflow.yaml b/.github/workflows/workflow.yaml index 767afc7..d5bb22d 100644 --- a/.github/workflows/workflow.yaml +++ b/.github/workflows/workflow.yaml @@ -50,18 +50,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - path: g4f-api - - uses: a7ul/tar-action@v1.1.0 - with: - command: c - cwd: "./" - files: "g4f-api/" - outPath: deploy.tar - - name: Deploy App to CapRover - uses: caprover/deploy-from-github@v1.0.1 + uses: caprover/deploy-from-github@v1.1.2 with: server: '${{ secrets.CAPROVER_SERVER }}' app: '${{ secrets.APP_NAME }}' token: '${{ secrets.APP_TOKEN }}' + branch: ${{ github.head_ref || github.ref_name }}