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