浏览代码

[ci] Make deploys on happen on tags

Colin Powell 4 月之前
父节点
当前提交
d7cc009d07
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .drone.yml

+ 2 - 2
.drone.yml

@@ -39,8 +39,8 @@ steps:
         - vrobbler collectstatic --noinput
         - vrobbler collectstatic --noinput
         - immortalctl restart celery && immortalctl restart vrobbler
         - immortalctl restart celery && immortalctl restart vrobbler
     when:
     when:
-      branch:
-      - main
+      ref:
+        - refs/tags/*
   - name: build success notification
   - name: build success notification
     image: parrazam/drone-ntfy:0.3-linux-amd64
     image: parrazam/drone-ntfy:0.3-linux-amd64
     when:
     when: