Compare commits
93 Commits
Author | SHA1 | Date | |
---|---|---|---|
239e6c6a65 | |||
64d4e014a1 | |||
a9eab4ab5e | |||
a62b9eadde | |||
ca8646527c | |||
f662462072 | |||
30cbe757d3 | |||
39a5ab8ff9 | |||
0777c9eb99 | |||
7a4b225934 | |||
479452b271 | |||
2fb00d6eeb | |||
02362ade1e | |||
249b972406 | |||
81a9321531 | |||
cf6e1d2e62 | |||
5f5cfd26db | |||
60ed9c664b | |||
190287cd72 | |||
e443cda701 | |||
8ec77904db | |||
e2227f3a6c | |||
84fb11cf4a | |||
3eb7ab4cd4 | |||
0e8d39f0c1 | |||
559223da39 | |||
5d6b14acc7 | |||
58e1b1d9c3 | |||
32bfc62714 | |||
bf09ddbac0 | |||
59261999f0 | |||
663b1cb364 | |||
aa9bba4755 | |||
f55c48eb4e | |||
1cddb4d88a | |||
944b7368d0 | |||
295745ed3b | |||
16c19e915c | |||
7a74aeac9a | |||
47da521a15 | |||
2f300a0ab6 | |||
7aa4310359 | |||
51d6bed019 | |||
92f922ff93 | |||
82025b9624 | |||
014ef099f2 | |||
febc36ef36 | |||
9a7217cbb6 | |||
64c8d8d77e | |||
7bebd66b20 | |||
7d8e82a7de | |||
89c1150c7d | |||
65a1db8157 | |||
c7bb134cff | |||
640ba2fbf5 | |||
c21ddcdd2e | |||
910c941222 | |||
6d6c56b87c | |||
96f27dadd7 | |||
0a380910dc | |||
98ab84e21f | |||
4cd0e6a1e3 | |||
27ef2b1e7f | |||
6b46502e81 | |||
cc8a946cd6 | |||
7580bcb90a | |||
07e384f98d | |||
5765b0e00b | |||
f6a8250db8 | |||
b94da7e56c | |||
b89a824004 | |||
b7845de2cb | |||
2f7b7645e3 | |||
6f4502389e | |||
636e769e56 | |||
d239610e81 | |||
e82de8da2a | |||
5232607549 | |||
1bacb3f46d | |||
6bf71399a3 | |||
4951107d89 | |||
5581e178a5 | |||
d688b9d34a | |||
dfe13b5ad5 | |||
eded025bd5 | |||
04ae797578 | |||
e38cf200b9 | |||
51d0d54771 | |||
664740860b | |||
8440fd8275 | |||
084e4239b4 | |||
9f0c85e8d3 | |||
66ea0ee96d |
32
.drone.yml
32
.drone.yml
@ -13,13 +13,6 @@ steps:
|
||||
- npm ci
|
||||
- vsce package
|
||||
|
||||
# - name: gitea_release
|
||||
# environment:
|
||||
# GITEA_TOKEN:
|
||||
# from_secret: gitea_token
|
||||
# commands:
|
||||
# - bash gitearelease.sh
|
||||
|
||||
- name: gitea_release
|
||||
image: plugins/gitea-release
|
||||
settings:
|
||||
@ -27,28 +20,3 @@ steps:
|
||||
files: ./*.vsix
|
||||
api_key:
|
||||
from_secret: gitea_token
|
||||
|
||||
# - name: deploy
|
||||
# environment:
|
||||
# PASSWORD:
|
||||
# from_secret: password
|
||||
# when:
|
||||
# status:
|
||||
# - success
|
||||
# - failure
|
||||
# commands:
|
||||
# - |
|
||||
# curl --fail-with-body -s -X POST \
|
||||
# --data-urlencode "digest=$(docker inspect registry.raphaelpiccolo.com/$DRONE_REPO_NAME:latest | jq -r '.[0].RepoDigests[0]' | cut -d@ -f 2)" \
|
||||
# --data-urlencode "start=$DRONE_BUILD_CREATED" \
|
||||
# --data-urlencode "url=$DRONE_BUILD_LINK" \
|
||||
# --data-urlencode "buildNumber=$DRONE_BUILD_NUMBER" \
|
||||
# --data-urlencode "version=$DRONE_TAG" \
|
||||
# --data-urlencode "name=$DRONE_REPO_NAME" \
|
||||
# --data-urlencode "size=$(docker inspect -f '{{ .Size }}' "$DRONE_REPO_NAME")" \
|
||||
# --data-urlencode "status=$DRONE_BUILD_STATUS" \
|
||||
# "https://admin:$PASSWORD@monitoring.raphaelpiccolo.com/fr/dronehook"
|
||||
|
||||
# - name: test
|
||||
# commands:
|
||||
# - docker run --rm cvtest npm test
|
||||
|
@ -1,39 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Variables
|
||||
# GITEA_TOKEN="xxxxxxxxxx"
|
||||
# DRONE_TAG="1.1.6"
|
||||
# DRONE_REPO_NAME="vscodestat"
|
||||
# DRONE_REPO_OWNER="root"
|
||||
GITEA_API_URL="https://gitea.raphaelpiccolo.com/api/v1"
|
||||
RELEASE_NAME="Release ${DRONE_TAG}"
|
||||
RELEASE_BODY="vscode extension generated"
|
||||
ARTIFACT_PATH="${DRONE_REPO_NAME}-${DRONE_TAG}.vsix"
|
||||
|
||||
# Create a release
|
||||
response=$(curl -s -X POST "${GITEA_API_URL}/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/releases" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"tag_name\": \"${DRONE_TAG}\",
|
||||
\"name\": \"${RELEASE_NAME}\",
|
||||
\"body\": \"${RELEASE_BODY}\",
|
||||
\"draft\": false,
|
||||
\"prerelease\": false
|
||||
}")
|
||||
|
||||
# Extract release ID from the response
|
||||
release_id=$(echo $response | jq '.id')
|
||||
|
||||
if [ -z "$release_id" ]; then
|
||||
echo "Failed to create release"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Upload the artifact
|
||||
curl -s -X POST "${GITEA_API_URL}/repos/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}/releases/${release_id}/assets?name=$(basename ${ARTIFACT_PATH})" \
|
||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||
-H "Content-Type: $(file -b --mime-type ${ARTIFACT_PATH})" \
|
||||
--data-binary @"${ARTIFACT_PATH}"
|
||||
|
||||
echo "Artifact uploaded successfully."
|
845
package-lock.json
generated
845
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "vscodestat",
|
||||
"displayName": "vscodestat",
|
||||
"version": "1.1.11",
|
||||
"version": "1.1.57",
|
||||
"description": "",
|
||||
"categories": [
|
||||
"Other"
|
||||
@ -51,18 +51,18 @@
|
||||
"onStartupFinished"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/mocha": "^10.0.7",
|
||||
"@types/mocha": "^10.0.10",
|
||||
"@types/node": "22.x",
|
||||
"@types/vscode": "^1.92.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.1.0",
|
||||
"@typescript-eslint/parser": "^8.1.0",
|
||||
"@types/vscode": "^1.96.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
||||
"@typescript-eslint/parser": "^8.20.0",
|
||||
"@vscode/test-cli": "^0.0.10",
|
||||
"@vscode/test-electron": "^2.4.1",
|
||||
"eslint": "^9.9.0",
|
||||
"typescript": "^5.5.4"
|
||||
"eslint": "^9.18.0",
|
||||
"typescript": "^5.7.3"
|
||||
},
|
||||
"engines": {
|
||||
"vscode": "^1.92.0"
|
||||
"vscode": "^1.96.0"
|
||||
},
|
||||
"icon": "icon.png",
|
||||
"extensionKind": [
|
||||
|
Loading…
x
Reference in New Issue
Block a user