Closed Tam2 closed 1 year ago
Added an extra step in to run git rev-parse master
and it does output the hash
Try running removing the branch
variable, and just run this step before that:
git archive --format tar --output "./deploy.tar" master
Does this work?
I ended up just running the caprover deploy command directly in the wokflow and that worked
I think this shouldn't be closed. I had the same issue. The suggested commands will work in the CI:
git rev-parse master
git archive --format tar --output "./deploy.tar" master
work. Couldn't debug it further because the workaround is very simple:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Deploy App to CapRover
run: |
npm install -g caprover
caprover deploy \
--caproverUrl '${{ secrets.CAPROVER_SERVER }}' \
--appToken '${{ secrets.APP_TOKEN }}' \
--appName '${{ secrets.APP_NAME }}' \
-b '${{ github.head_ref || github.ref_name }} '
I'm having some issues with deploying, it keeps giving me the below error:
(I do have a special path for captain-definition, it's just the hash error)
This is how i've got my workflow set-up