Skip to content

Commit 1a173a8

Browse files
Possible start of shifting to Github Actions
I have absolutely no idea if this is gonna work first try, but hey, it's a start and if it don't work, I'll blow it up and start again.
1 parent 00524b4 commit 1a173a8

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# This workflow will build a Java project with Gradle
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Build Mod
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
pull_request:
10+
branches: [ master ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
- name: Grant execute permission for gradlew
24+
run: chmod +x gradlew
25+
- name: Build with Gradle
26+
run: ./gradlew build
27+
- name: Upload to Release
28+
uses: JasonEtco/upload-to-release@v0.1.1
29+
with:
30+
args: justenoughids-*.jar
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+

0 commit comments

Comments
 (0)