Skip to content

Commit 18ada15

Browse files
KKhanhHDextinfire
authored andcommitted
Limit pipeline releases to master/tags
1 parent fc73cb0 commit 18ada15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
uses: codacy/[email protected]
2626

2727
- name: Build
28+
id: build
2829
run: |
2930
dotnet publish --configuration Release --runtime win-x64 --no-self-contained --output publish/magesscripttool-windows-amd64 src/MagesScriptTool
3031
dotnet publish --configuration Release --runtime linux-x64 --no-self-contained --output publish/magesscripttool-linux-amd64 src/MagesScriptTool
@@ -40,6 +41,7 @@ jobs:
4041
4142
- name: Create GitHub Release
4243
uses: softprops/action-gh-release@v1
44+
if: ((startsWith(github.ref, 'refs/tags') || github.ref_name == 'master'))
4345
with:
4446
files: |
4547
publish/magesscripttool-linux-amd64.zip

0 commit comments

Comments
 (0)