diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index e2831df..ff28967 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -21,4 +21,4 @@ jobs: username: ${{ secrets.DEPLOY_USERNAME }} key: ${{ secrets.DENSEBOT_PRIVATE_SSH_KEY }} script_stop: true - script: ~/denseanalysis-org/deploy.sh + script: cd ~/denseanalysis-org && ./deploy.sh diff --git a/deploy.sh b/deploy.sh index 29ccd23..18958e1 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,9 +2,6 @@ set -eu -# Make sure we run this from the directory the script is in. -cd "$(dirname "${BASH_SOURCE[0]}")" - # Pull the latest code. git pull # Update submodules such as the template.