diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c77af87..13997b9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -29,6 +29,7 @@ jobs: port: ${{ secrets.PORT }} script: | cd ${GITHUB_REPOSITORY##*/} + git checkout ${GITHUB_REF##*/} git pull docker compose down docker compose up -d @@ -48,6 +49,7 @@ jobs: port: ${{ secrets.PORT }} script: | cd ${GITHUB_REPOSITORY##*/} + git checkout ${GITHUB_REF##*/} git pull docker compose down docker compose up -d