Skip to content

Commit a19516e

Browse files
committed
Allow release creation
1 parent 63ecdf9 commit a19516e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- master
77
tags:
88
- 'v*'
9+
release:
10+
types:
11+
- created
912

1013

1114
permissions:
@@ -42,14 +45,15 @@ jobs:
4245
fi
4346
4447
- name: Build mod artifact
48+
if: github.event_name == 'release' && github.event.action == 'created'
4549
run: |
4650
chmod +x gradlew
4751
./gradlew clean
4852
./gradlew dex
4953
5054
- name: Upload built mod artifact as a GitHub Action artifact
5155
uses: actions/upload-artifact@v4
52-
if: github.event_name == 'push' || github.event_name == 'pull_request'
56+
if: github.event_name == 'release' && github.event.action == 'created'
5357
with:
5458
name: CustomJsonLib (zipped)
5559
path: build/libs/CustomJsonLibCrossPlatform.jar

0 commit comments

Comments
 (0)