We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11441eb commit cfcc647Copy full SHA for cfcc647
.github/workflows/create-github-release.yaml
@@ -6,6 +6,27 @@ on:
6
- "v*.*.*" # triggers on tags like vX.Y.Z
7
8
jobs:
9
+
10
+ run-only-on-main-branch:
11
+ name: Create GitHub Release
12
+ runs-on: ubuntu-latest
13
+ needs: build-native
14
+ permissions:
15
+ contents: write
16
17
+ steps:
18
+ - name: Checkout repository
19
+ uses: actions/checkout@v4
20
+ - name: Check if tag is on main
21
+ run: |
22
+ git fetch origin main
23
+ if git merge-base --is-ancestor $GITHUB_SHA origin/main; then
24
+ echo "Tag is on main"
25
+ else
26
+ echo "Tag is NOT on main, skipping"
27
+ exit 0
28
+ fi
29
30
build-native:
31
name: Build on ${{ matrix.os }}
32
runs-on: ${{ matrix.os }}
0 commit comments