From d4eec29e8a5feb7c6b6b372aed17dea2ca431ebd Mon Sep 17 00:00:00 2001 From: ahai <1149956305@qq.com> Date: Mon, 1 Apr 2024 14:45:58 +0800 Subject: [PATCH] update ci --- .github/workflows/publish.yaml | 9 ++++++--- README.md | 2 +- metadata.lua | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 71f3a28..a9c79b4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -4,6 +4,9 @@ on: push: tags: [ 'v*' ] +permissions: + contents: write + jobs: generate-manifest-json: runs-on: ubuntu-latest @@ -29,7 +32,7 @@ jobs: sudo lua -e ' require("metadata"); local dkjson = require("dkjson"); - PLUGIN.downloadUrl = "https://github.com/${{ github.repository }}/releases/download/v${{ env.VERSION }}/${{ env.REPO_NAME }}_${{ env.VERSION }}.zip"; + PLUGIN.downloadUrl = "https://github.com/${{ github.repository }}/releases/download/v${{ env.VERSION }}/${{ env.REPO_NAME }}-${{ env.VERSION }}.zip"; local str = dkjson.encode(PLUGIN); print(str)' > manifest.json cat manifest.json @@ -57,7 +60,7 @@ jobs: with: type: "zip" directory: "./" - filename: "${{ env.REPO_NAME }}_${{ env.VERSION }}.zip" + filename: "${{ env.REPO_NAME }}-${{ env.VERSION }}.zip" exclusions: "*.git* manifest.json" - name: Publish release uses: svenstaro/upload-release-action@v2 @@ -73,4 +76,4 @@ jobs: file: ./manifest.json tag: "manifest" overwrite: true - file_glob: true + file_glob: true \ No newline at end of file diff --git a/README.md b/README.md index 3524083..86acf65 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,6 @@ Node.js plugin for [vfox](https://vfox.lhan.me/). After installing [vfox](https://github.com/version-fox/vfox), install the plugin by running: ```bash -vfox install nodejs +vfox add nodejs ``` diff --git a/metadata.lua b/metadata.lua index 1f3b21c..6194894 100644 --- a/metadata.lua +++ b/metadata.lua @@ -5,7 +5,7 @@ PLUGIN = {} --- Plugin name PLUGIN.name = "nodejs" --- Plugin version -PLUGIN.version = "0.0.5" +PLUGIN.version = "0.1.1" --- Plugin repository PLUGIN.homepage = "https://github.com/version-fox/vfox-nodejs" --- Plugin license @@ -15,7 +15,7 @@ PLUGIN.description = "Node.js runtime environment." --- !!! OPTIONAL !!! -- minimum compatible vfox version -PLUGIN.minRuntimeVersion = "0.2.6" +PLUGIN.minRuntimeVersion = "0.3.0" -- Some things that need user to be attention! PLUGIN.notes = {}