From 1a2b78833c9bfe2c5166d5f0535d13e052c1f35f Mon Sep 17 00:00:00 2001 From: Willem Jan Noort Date: Mon, 24 Jun 2024 18:46:42 +0200 Subject: [PATCH] chore: set rockspec to scm --- .github/workflows/release.yml | 7 +++++++ ...re.nvim-0.0.1-1.rockspec => adopure.nvim-scm-1.rockspec | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) rename adopure.nvim-0.0.1-1.rockspec => adopure.nvim-scm-1.rockspec (92%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5710a33..c79a0e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,8 +13,15 @@ jobs: - name: Checkout uses: actions/checkout@v3 if: env.LUAROCKS_API_KEY != null + - name: Get Version + run: echo "LUAROCKS_VERSION=$( \ + git fetch --tags; git describe --abbrev=0 --tags \ + )" \ + >> $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", }, }