From 96c6bb5e7078eade9edce65c3d4d3b2c70e548d2 Mon Sep 17 00:00:00 2001 From: Maciej Procyk Date: Sat, 7 Mar 2020 23:31:39 +0100 Subject: [PATCH] fix: push only server folder --- .github/workflows/webserver_deploy.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/webserver_deploy.yml b/.github/workflows/webserver_deploy.yml index be5d54ef..37aca99d 100644 --- a/.github/workflows/webserver_deploy.yml +++ b/.github/workflows/webserver_deploy.yml @@ -16,7 +16,4 @@ jobs: ref: server - name: Deploy to Heroku if: github.ref == 'refs/heads/server' && job.status == 'success' - run: | - git fetch --all --unshallow - ls -la - git push -f https://heroku:${{ secrets.HEROKU_API_TOKEN }}@git.heroku.com/mycanteenapp.git server:master + run: git subtree push --prefix server https://heroku:${{ secrets.HEROKU_API_TOKEN }}@git.heroku.com/mycanteenapp.git server:master