From 51eddcb7d3f31693839709f1cd5c94099580a69f Mon Sep 17 00:00:00 2001 From: Vhyrro Date: Sat, 17 Feb 2024 14:26:20 +0100 Subject: [PATCH] feat: add CI --- .github/workflows/luarocks.yml | 34 ++++++++++++++++++++++++++++ .github/workflows/release-please.yml | 16 +++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .github/workflows/luarocks.yml create mode 100644 .github/workflows/release-please.yml diff --git a/.github/workflows/luarocks.yml b/.github/workflows/luarocks.yml new file mode 100644 index 0000000..f84ef68 --- /dev/null +++ b/.github/workflows/luarocks.yml @@ -0,0 +1,34 @@ +name: Push to Luarocks + +on: + push: + release: + types: + - created + tags: + - '*' + workflow_dispatch: + +jobs: + luarocks-upload: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # Required to count the commits + - name: Get Version + run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV + - name: LuaRocks Upload + uses: nvim-neorocks/luarocks-tag-release@v5 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + with: + version: ${{ env.LUAROCKS_VERSION }} + test_interpreters: null + summary: "A set of utility functions for Neovim plugins." + detailed_summary: | + This repository contains a small set of nicities for performing repetitive tasks within Neovim. + This set may shrink further as the features are included in other, larger "utility kits". + + The code you see in this repository is primarily used within Neorg. + All functions are annotated using LuaCATS. diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..4fc2f1d --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,16 @@ +name: Release Please Automatic Semver + +on: + push: + branches: + - main + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v3 + with: + release-type: simple + package-name: lua-utils.nvim