From c122a53d6614b8363ee4a41c54628641148b5a44 Mon Sep 17 00:00:00 2001 From: w0rp Date: Mon, 3 Jun 2024 20:37:10 +0100 Subject: [PATCH] Simplify setting the path --- .github/workflows/cd.yml | 2 +- deploy.sh | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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.