diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5710a33..0f17835 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,5 +1,5 @@ --- -name: "Release" +name: Release on: push: tags: @@ -13,8 +13,17 @@ jobs: - name: Checkout uses: actions/checkout@v3 if: env.LUAROCKS_API_KEY != null + + - name: Get Version + run: | + git fetch --tags + tag="$(git describe --abbrev=0 --tags)" + echo "LUAROCKS_VERSION=$tag" >> $GITHUB_ENV + - name: Luarocks Upload uses: nvim-neorocks/luarocks-tag-release@v5 if: env.LUAROCKS_API_KEY != null env: LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + version: ${{ env.LUAROCKS_VERSION }} diff --git a/adopure.nvim-0.0.1-1.rockspec b/adopure.nvim-scm-1.rockspec similarity index 92% rename from adopure.nvim-0.0.1-1.rockspec rename to adopure.nvim-scm-1.rockspec index 02f255f..2af053d 100644 --- a/adopure.nvim-0.0.1-1.rockspec +++ b/adopure.nvim-scm-1.rockspec @@ -1,6 +1,6 @@ rockspec_format = "3.0" package = "adopure.nvim" -version = "0.0.1-1" +version = "scm-1" source = { url = "git+https://github.com/Willem-J-an/adopure.nvim", } @@ -16,6 +16,7 @@ test_dependencies = { build = { type = "builtin", copy_directories = { + "doc", "plugin", }, }