From ed78c5faecba5563bf1feca0f3cb236fcab063f0 Mon Sep 17 00:00:00 2001 From: Marc Jakobi Date: Sun, 4 Jun 2023 17:00:05 +0200 Subject: [PATCH] cd: add release workflow --- .github/workflows/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..5ebb2f8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +--- +name: "Luarocks release" +on: + push: + tags: + - '*.*.*' + +jobs: + release: + runs-on: ubuntu-latest + name: Release + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Fail if changelog entry does not exist + run: grep -q "${{ github.ref_name }}" CHANGELOG.md + - name: Release to marketplace + uses: ncipollo/release-action@v1 + with: + bodyFile: "CHANGELOG.md" + allowUpdates: true