Browse Source

fix(deploy): include .drone.yml in deployment artifacts

- Added a step to copy the .drone.yml configuration file to the temporary distribution directory during the deployment process.
- This change ensures that the necessary Drone configuration is included with the deployment artifacts, improving the deployment workflow.
main
npmrun 1 week ago
parent
commit
8cab16761f
  1. 1
      scripts/deploy.sh

1
scripts/deploy.sh

@ -25,6 +25,7 @@ git clone --single-branch --branch $PROD_BRANCH $GIT_REPO_URL .tmp_dist || {
# 3. 删除旧产物,复制新产物
echo "♻️ 更新产物文件..."
rm -rf .tmp_dist/*
cp -r $BUILD_FOLDER/.drone.yml .tmp_dist/.drone.yml
cp -r $BUILD_FOLDER/* .tmp_dist/
# 4. 提交并推送

Loading…
Cancel
Save