[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/clojure-ts-mode cec1d322de 4/4: Automate the creation of G
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/clojure-ts-mode cec1d322de 4/4: Automate the creation of GitHub releases |
Date: |
Tue, 15 Apr 2025 07:00:13 -0400 (EDT) |
branch: elpa/clojure-ts-mode
commit cec1d322dee8571c98704bbc26bc6201711291c5
Author: Bozhidar Batsov <bozhidar@batsov.dev>
Commit: Bozhidar Batsov <bozhidar@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..390eaccea0
--- /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: clojure-ts-mode ${{ 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 }}