-
Notifications
You must be signed in to change notification settings - Fork 32
56 lines (43 loc) · 1.33 KB
/
push.yml
File metadata and controls
56 lines (43 loc) · 1.33 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Java CI
on: [push]
jobs:
buildJar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 17
- name: Set up PATH
run: echo "${ANDROID_HOME}/build-tools/30.0.1" >> $GITHUB_PATH
- name: General information
run: |
java --version
d8 --version
- name: Build and dexify mod jar file
run: |
chmod +x gradlew
./gradlew main:deploy main:dex tools:proc
- name: Upload built mod jar file
uses: actions/upload-artifact@v2.2.1
with:
name: ProjectUnity (zipped)
path: main/build/libs/ProjectUnity.jar
- name: Make a tag name
if: github.ref == 'refs/heads/master'
run: |
echo "::set-output name=tag::$(date +%Y%m%d%H%M%S)"
id: tag_make
- name: Create blank release
if: github.ref == 'refs/heads/master'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run:
hub release create -m "Project Unity" "${{ steps.tag_make.outputs.tag }}"
- name: Add jar Release
uses: softprops/action-gh-release@v1
if: github.ref == 'refs/heads/master'
with:
tag_name: ${{ steps.tag_make.outputs.tag }}
files: main/build/libs/ProjectUnity.jar