From 969255cab546c610da10a8b235c7edbd36817464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Sat, 3 Dec 2022 08:14:18 +0100 Subject: [PATCH 1/4] feat: drone --- .drone.yml | 28 ++++++++++++++++++++++++++++ src/message.ts | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..324dcc1 --- /dev/null +++ b/.drone.yml @@ -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 diff --git a/src/message.ts b/src/message.ts index 69c2b0a..cb143b7 100644 --- a/src/message.ts +++ b/src/message.ts @@ -12,5 +12,5 @@ export type LoginMessage = { export type Message = LoginMessage; export type ErrorResponse = { - error?: string; + error: string; }; -- 2.40.1 From 983302a914569ad79d268399f73c9520c13c137c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Sat, 3 Dec 2022 08:15:00 +0100 Subject: [PATCH 2/4] feat: drone --- .drone.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.drone.yml b/.drone.yml index 324dcc1..9b9482d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,3 +26,8 @@ steps: trigger: event: - tag +--- +kind: signature +hmac: 0bca61cd1b9a7c96b504e849dae0318570020d7bec6c53cad053d70075bc386c + +... -- 2.40.1 From 349d7dd6a5b02bfb7f1a82506cf21afb7ccb9035 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Sat, 3 Dec 2022 08:16:49 +0100 Subject: [PATCH 3/4] feat: drone --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9b9482d..b728fef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,7 @@ steps: GITEA_PASSWORD: from_secret: gitea_password commands: - - apt install -y zip curl + - 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}" \ @@ -28,6 +28,6 @@ trigger: - tag --- kind: signature -hmac: 0bca61cd1b9a7c96b504e849dae0318570020d7bec6c53cad053d70075bc386c +hmac: cf7a4e1aecaedbfc60425b11bf42613dfd2bde9914b4b8c9c36a7f3f0febea41 ... -- 2.40.1 From 3645c0c3278b492833ac33c00995a91ff49f59d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Sat, 3 Dec 2022 08:20:43 +0100 Subject: [PATCH 4/4] feat: drone --- .drone.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index b728fef..108ba7a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,15 +19,13 @@ steps: - 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" + - "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 +hmac: 798279fd9edd0517b4f1554526b1a17019e23bc639382230d6afdb449495db03 ... -- 2.40.1