Compare commits

..

5 Commits

Author SHA1 Message Date
5489463885 up
All checks were successful
continuous-integration/drone/tag Build is passing
2024-08-13 00:41:16 +02:00
cf1eca0e5c up
Some checks failed
continuous-integration/drone/tag Build is failing
2024-08-13 00:33:07 +02:00
5a28602203 up
All checks were successful
continuous-integration/drone/tag Build is passing
2024-08-13 00:06:19 +02:00
9b3cd8cbcc feature: wedoxa 2024-08-13 00:03:54 +02:00
b7608be252 up
All checks were successful
continuous-integration/drone/tag Build is passing
2024-08-13 00:02:23 +02:00
4 changed files with 19 additions and 25 deletions

View File

@ -1,37 +1,32 @@
kind: pipeline kind: pipeline
type: ssh
name: default name: default
server:
host: build.gextra.net
user: root
ssh_key:
from_secret: ssh_key_secret
trigger: trigger:
event: event:
- tag - tag
steps: steps:
- name: build - name: build
image: node
commands: commands:
- npm install -g vsce
- npm ci - npm ci
- vsce package - vsce package
- name: gitea_release
environment:
GITEA_TOKEN:
from_secret: gitea_token
commands:
- bash gitearelease.sh
# - name: gitea_release # - name: gitea_release
# image: plugins/gitea-release # environment:
# settings: # GITEA_TOKEN:
# base_url: https://gitea.raphaelpiccolo.com
# files: "*.vsix"
# api_key:
# from_secret: gitea_token # from_secret: gitea_token
# commands:
# - bash gitearelease.sh
- name: gitea_release
image: plugins/gitea-release
settings:
base_url: https://gitea.raphaelpiccolo.com
files: ./*.vsix
api_key:
from_secret: gitea_token
# - name: deploy # - name: deploy
# environment: # environment:

View File

@ -1,12 +1,11 @@
#!/bin/bash #!/bin/bash
# Variables # Variables
# GITEA_TOKEN="" # GITEA_TOKEN="xxxxxxxxxx"
# DRONE_TAG="1.1.6" # DRONE_TAG="1.1.6"
# DRONE_REPO_NAME="vscodestat" # DRONE_REPO_NAME="vscodestat"
# DRONE_REPO_OWNER="root" # DRONE_REPO_OWNER="root"
GITEA_API_URL="https://gitea.raphaelpiccolo.com/api/v1" GITEA_API_URL="https://gitea.raphaelpiccolo.com/api/v1"
TAG_NAME="v${DRONE_TAG}"
RELEASE_NAME="Release ${DRONE_TAG}" RELEASE_NAME="Release ${DRONE_TAG}"
RELEASE_BODY="vscode extension generated" RELEASE_BODY="vscode extension generated"
ARTIFACT_PATH="${DRONE_REPO_NAME}-${DRONE_TAG}.vsix" ARTIFACT_PATH="${DRONE_REPO_NAME}-${DRONE_TAG}.vsix"
@ -16,7 +15,7 @@ response=$(curl -s -X POST "${GITEA_API_URL}/repos/${DRONE_REPO_OWNER}/${DRONE_R
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-d "{ -d "{
\"tag_name\": \"${TAG_NAME}\", \"tag_name\": \"${DRONE_TAG}\",
\"name\": \"${RELEASE_NAME}\", \"name\": \"${RELEASE_NAME}\",
\"body\": \"${RELEASE_BODY}\", \"body\": \"${RELEASE_BODY}\",
\"draft\": false, \"draft\": false,

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "vscodestat", "name": "vscodestat",
"version": "1.1.7", "version": "1.1.11",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "vscodestat", "name": "vscodestat",
"version": "1.1.7", "version": "1.1.11",
"license": "ISC", "license": "ISC",
"devDependencies": { "devDependencies": {
"@types/mocha": "^10.0.7", "@types/mocha": "^10.0.7",

View File

@ -1,7 +1,7 @@
{ {
"name": "vscodestat", "name": "vscodestat",
"displayName": "vscodestat", "displayName": "vscodestat",
"version": "1.1.7", "version": "1.1.11",
"description": "", "description": "",
"categories": [ "categories": [
"Other" "Other"