diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0360885..e8d8979 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,8 +37,10 @@ jobs: - name: tarball run: | TAG=$(git name-rev --tags --name-only ${{github.ref}}) - TARBALL="nvim-client-proxy-${TAG}.tar.gz" + VERSION=${TAG:1} + TARBALL="nvim-client-proxy-${VERSION}.tar.gz" echo TAG=${TAG} >> $GITHUB_ENV + echo VERSION=${VERSION} >> $GITHUB_ENV echo TARBALL=${TARBALL} >> $GITHUB_ENV tar --create -z --file ${TARBALL} *.md LICENSE src test *.rockspec @@ -56,5 +58,5 @@ jobs: run: | ./.deps/usr/bin/luarocks make ./.deps/usr/bin/luarocks pack nvim-client-proxy - ./.deps/usr/bin/luarocks upload *.rockspec --api-key=${{ secrets.LUAROCKS_KEY }} + ./.deps/usr/bin/luarocks upload --force *.rockspec --api-key=${{ secrets.LUAROCKS_KEY }} diff --git a/nvim-client-proxy-0.1.0-1.rockspec b/nvim-client-proxy-0.1.0-1.rockspec index fcaa9d5..2e23fa2 100644 --- a/nvim-client-proxy-0.1.0-1.rockspec +++ b/nvim-client-proxy-0.1.0-1.rockspec @@ -6,7 +6,7 @@ local git_tag = 'v' .. rock_version package = "nvim-client-proxy" version = rock_version .. '-1' source = { - url = 'https://github.com/hjdivad/nvim-client-proxy/archive/' .. git_tag .. '.tar.gz', + url = 'https://github.com/hjdivad/nvim-client-proxy/releases/download/' .. git_tag .. '/nvim-client-proxy-' .. rock_version .. '.tar.gz', } description = { homepage = "https://github.com/hjdivad/nvim-client-proxy/",