From 33f0b03458280709fd95ff88f50babf0ba920edf Mon Sep 17 00:00:00 2001 From: xiaoshihou Date: Sun, 21 Jan 2024 13:58:06 +0000 Subject: [PATCH] ci: luarocks workflow --- .github/workflows/luarocks.yml | 18 ++++++++++++++++++ .github/workflows/release-please.yml | 19 +++++++++++++++++++ 2 files changed, 37 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..8cf6050 --- /dev/null +++ b/.github/workflows/luarocks.yml @@ -0,0 +1,18 @@ +name: Push to Luarocks + +on: + push: + tags: # Will upload to luarocks.org when a tag is pushed + - "*" + pull_request: # Will test a local install without uploading to luarocks.org + workflow_dispatch: + +jobs: + luarocks-upload: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v3 + - name: LuaRocks Upload + uses: nvim-neorocks/luarocks-tag-release@v5 + env: + LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..c11835a --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,19 @@ +name: Release Please + +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 + with: + token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }} + release-type: simple