diff --git a/.drone.yml b/.drone.yml index b95dfa2..c99d744 100644 --- a/.drone.yml +++ b/.drone.yml @@ -29,7 +29,20 @@ steps: # source: dist/**/* # target: live-cli/${DRONE_BUILD_CREATED}-${DRONE_COMMIT} - - name: Gitea Artifacts + - name: Publish Artifacts + image: ubuntu + volumes: + - name: dist + path: /dist + environment: + GITEA_SVC_USERNAME: + from_secrete: GITEA_SVC_USERNAME + GITEA_SVC_PASSWORD: + from_secret: GITEA_SVC_PASSWORD + commands: + - set -ex; cd /dist; for f in *; do curl --user "drone-svc:${GITEA_SVC_PASSWORD}" -X PUT https://gitea.example.com/api/packages/public/generic/${DRONE_REPO_NAME}/$(date -Isecond)-${DRONE_COMMIT}/${f}; done + + - name: Publish release image: plugins/gitea-release when: event: