summaryrefslogtreecommitdiff
path: root/.github/workflows/release-on-tag.yaml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/release-on-tag.yaml')
-rw-r--r--.github/workflows/release-on-tag.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/release-on-tag.yaml b/.github/workflows/release-on-tag.yaml
new file mode 100644
index 0000000..ef4c91c
--- /dev/null
+++ b/.github/workflows/release-on-tag.yaml
@@ -0,0 +1,23 @@
+name: Create Release
+
+on:
+ push:
+ tags:
+ - 'v*' # This will trigger the action when you push a tag like v1.0, v1.1, etc.
+
+jobs:
+ release:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Set up Git
+ run: |
+ git config user.name "GitHub Actions"
+ git config user.email "actions@github.com"
+
+ - name: Create Release
+ uses: softprops/action-gh-release@v2
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically provided by GitHub Actions