diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 089a45e..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 @@ -39,9 +42,9 @@ jobs: name: manifest path: manifest.json release-plugin-and-manifest: - needs: generate-manifest-json - runs-on: ubuntu-latest - steps: + needs: generate-manifest-json + runs-on: ubuntu-latest + steps: - name: Set repo name run: | echo "REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2)" >> $GITHUB_ENV diff --git a/metadata.lua b/metadata.lua index af9ed5a..1f6abc1 100644 --- a/metadata.lua +++ b/metadata.lua @@ -5,7 +5,7 @@ PLUGIN = {} --- Plugin name PLUGIN.name = "kotlin" --- Plugin version -PLUGIN.version = "0.1.0" +PLUGIN.version = "0.1.1" --- Plugin homepage PLUGIN.homepage = "https://github.com/version-fox/vfox-kotlin" --- Plugin license, please choose a correct license according to your needs.