-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (33 loc) · 951 Bytes
/
Copy pathcommitTest.yml
File metadata and controls
42 lines (33 loc) · 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Build Mod
on:
push:
branches: [ master ]
workflow_dispatch:
permissions:
contents: write
jobs:
buildJar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Resize icon to 256x256
run: |
sudo apt-get install -y imagemagick
convert icon.png -resize 256x256 icon.png
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Build mod jar
run: |
chmod +x ./gradlew
./gradlew jar
- name: Delete old release if exists
run: gh release delete v157.3 --yes || true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release with jar
run: gh release create v157.3 build/libs/*Desktop.jar --title "AutoDrill Reworked v157.3" --notes "Updated for Mindustry v157.3" --latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}