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 }}