sessions-ext/.drone.yml

34 lines
773 B
YAML

---
kind: pipeline
type: docker
name: linux-amd64
platform:
os: linux
arch: amd64
steps:
- name: publish
image: node:16-bullseye
environment:
GITEA_USERNAME:
from_secret: gitea_username
GITEA_PASSWORD:
from_secret: gitea_password
commands:
- apt update && apt install -y zip curl
- yarn && yarn build
- cd dist && zip -r extension.zip * && mv extension.zip ../ && cd ..
- curl --user "${GITEA_USERNAME}:${GITEA_PASSWORD}" \
--upload-file extension.zip \
"https://gitea.dwysokinski.me/api/packages/twhelp/generic/sessions-ext/${DRONE_TAG##v}/extension.zip"
trigger:
event:
- tag
---
kind: signature
hmac: cf7a4e1aecaedbfc60425b11bf42613dfd2bde9914b4b8c9c36a7f3f0febea41
...