This commit is contained in:
parent
6e258ad2a4
commit
bdd28da59e
15
.drone.yml
15
.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:
|
||||
|
Loading…
Reference in New Issue
Block a user