remove dedicated 'check-branch' step
This commit is contained in:
@@ -32,11 +32,10 @@ tasks:
|
|||||||
source bin/get-last-commit.sh
|
source bin/get-last-commit.sh
|
||||||
DITHER_SERVER=http://localhost:4567 hugo --minify
|
DITHER_SERVER=http://localhost:4567 hugo --minify
|
||||||
find public -name "*.enc" -type f -delete
|
find public -name "*.enc" -type f -delete
|
||||||
- check-branch: |
|
- deploy: |
|
||||||
if [ "$(git rev-parse main)" != "$(git rev-parse HEAD)" ]; then \
|
if [ "$(git rev-parse main)" != "$(git rev-parse HEAD)" ]; then \
|
||||||
complete-build; \
|
complete-build; \
|
||||||
fi
|
fi
|
||||||
- deploy: |
|
|
||||||
set +x
|
set +x
|
||||||
export SERVER_IP=$(cat ~/server_ip.txt)
|
export SERVER_IP=$(cat ~/server_ip.txt)
|
||||||
rsync \
|
rsync \
|
||||||
|
|||||||
Reference in New Issue
Block a user