feat: drone

This commit is contained in:
Dawid Wysokiński 2022-12-03 08:14:18 +01:00
parent f71c352d7d
commit 969255cab5
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
2 changed files with 29 additions and 1 deletions

28
.drone.yml Normal file
View File

@ -0,0 +1,28 @@
---
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 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

View File

@ -12,5 +12,5 @@ export type LoginMessage = {
export type Message = LoginMessage;
export type ErrorResponse = {
error?: string;
error: string;
};