1 parent 84ce686 commit 509e92fCopy full SHA for 509e92f
1 file changed
.github/workflows/release.yml
@@ -0,0 +1,29 @@
1
+name: Build and Publish
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ tags:
8
+ - 'release-*'
9
10
+jobs:
11
+ build:
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - name: Checkout code
16
+ uses: actions/checkout@v4
17
18
+ - name: Run build script
19
+ run: |
20
+ chmod +x ./mods.sh
21
+ ./mods.sh build
22
23
+ - name: Upload release assets (for tags)
24
+ if: startsWith(github.ref, 'refs/tags/')
25
+ uses: softprops/action-gh-release@v2
26
+ with:
27
+ files: build/*.zip
28
+ env:
29
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments