Skip to content

Commit 043c536

Browse files
committed
Automatic releases on master branch
1 parent 953abba commit 043c536

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ name: build
22

33
on:
44
push:
5-
branches:
6-
- main
5+
tags:
6+
- '*'
77
pull_request:
88
branches:
9-
- main
9+
- master
10+
- develop
1011

1112
jobs:
1213
linux:
@@ -36,11 +37,11 @@ jobs:
3637
run: cmake --build build --parallel
3738

3839
- name: Publish release
39-
if: ${{ env.publish_tag }}
40+
if: startsWith(github.ref, 'refs/tags/')
4041
uses: ncipollo/release-action@v1
4142
with:
4243
allowUpdates: true
43-
tag: ${{ env.publish_tag }}
44+
tag: ${{ github.ref_name }}
4445
artifacts: "build/bin/cod4x_*.dll"
4546
token: ${{ secrets.GITHUB_TOKEN }}
4647

0 commit comments

Comments
 (0)