summaryrefslogtreecommitdiff
path: root/.github/workflows/release-on-tag.yaml
blob: ef4c91cf1a58b20995b43e93daef42d7ef94da16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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