From f33b139a9326e202e89c4522da7aa930d29a628a Mon Sep 17 00:00:00 2001 From: Igor Date: Sun, 9 Feb 2025 16:11:09 -0300 Subject: [PATCH] ci: add release-please workflow --- .github/workflows/release.yml | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 05db001..c50c8a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,14 +1,21 @@ -name: "release" +name: Release To GitHub + on: push: - tags: - - 'v*' + branches: + - main + workflow_dispatch: + +permissions: + contents: write + pull-requests: write + jobs: - luarocks-upload: - runs-on: ubuntu-22.04 + release: + name: Release To GitHub + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: LuaRocks Upload - uses: nvim-neorocks/luarocks-tag-release@v4 - env: - LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} + - uses: googleapis/release-please-action@v4 + with: + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + release-type: simple