branch: elpa/flycheck
commit b73239837a40ce7a7ebe1b67e8ff8facf7af6de6
Author: Bozhidar Batsov <bozhi...@batsov.dev>
Commit: Bozhidar Batsov <bozhi...@batsov.dev>

    Automate the creation of GitHub releases
---
 .github/workflows/github-release.yml | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/.github/workflows/github-release.yml 
b/.github/workflows/github-release.yml
new file mode 100644
index 0000000000..e726cbdab7
--- /dev/null
+++ b/.github/workflows/github-release.yml
@@ -0,0 +1,27 @@
+name: Create GitHub Release
+
+on:
+  push:
+    tags:
+      - "v*"  # Trigger when a version tag is pushed (e.g., v1.0.0)
+
+jobs:
+  create-release:
+    runs-on: ubuntu-latest
+
+    permissions:
+      contents: write
+
+    steps:
+      - name: Checkout Code
+        uses: actions/checkout@v4
+
+      - name: Create GitHub Release with Auto-Generated Notes
+        uses: ncipollo/release-action@v1
+        with:
+          tag: ${{ github.ref_name }}
+          name: Flycheck ${{ github.ref_name }}
+          prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, 
'-alpha') || contains(github.ref, '-beta') }}
+          generateReleaseNotes: true  # Auto-generate release notes based on 
PRs and commits
+          # TODO: Use bodyFile to get the contents from changelog
+          token: ${{ secrets.GITHUB_TOKEN }}

Reply via email to