Skip to content

Commit 6f2cb1d

Browse files
Fix github actions build
1 parent b6ab017 commit 6f2cb1d

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

.github/workflows/build.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,54 @@
11
name: Build
22

3-
on:
4-
push:
5-
branches:
6-
- '**'
7-
pull_request:
8-
9-
jobs:
10-
build:
11-
name: Build
12-
runs-on: ubuntu-latest
13-
env:
14-
PROPERTIES_PATH: gradle.properties
15-
16-
steps:
17-
- uses: actions/checkout@v2
18-
19-
- name: Set up JDK 1.8
20-
uses: actions/setup-java@v1
21-
with:
22-
java-version: 1.8
23-
24-
- name: Grant execute permission for gradlew
25-
run: chmod +x gradlew
26-
27-
- name: Setup ForgeGradle
28-
run: ./gradlew setupCIWorkspace
29-
30-
- name: Read mod name
31-
id: read_mod_name
32-
uses: christian-draeger/read-properties@1.0.1
33-
with:
34-
path: ${{ env.PROPERTIES_PATH }}
35-
property: archivesBaseName
36-
37-
- name: Read mod version
38-
id: read_mod_version
39-
uses: christian-draeger/read-properties@1.0.1
40-
with:
41-
path: ${{ env.PROPERTIES_PATH }}
42-
property: version
43-
44-
- name: Build with Gradle
45-
run: ./gradlew build
46-
47-
- name: Upload mod jar
48-
env:
49-
mod_jar_name: ${{ steps.read_mod_name.outputs.value }}-${{ steps.read_mod_version.outputs.value }}
50-
mod_jar_path: build/libs/${{ steps.read_mod_name.outputs.value }}-${{ steps.read_mod_version.outputs.value }}.jar
51-
uses: actions/upload-artifact@v1.0.0
52-
with:
53-
name: ${{ env.mod_jar_name }}
54-
path: ${{ env.mod_jar_path }}
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
env:
14+
PROPERTIES_PATH: gradle.properties
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- name: Set up JDK 1.8
20+
uses: actions/setup-java@v1
21+
with:
22+
java-version: 1.8
23+
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x gradlew
26+
27+
- name: Setup ForgeGradle
28+
run: ./gradlew setupCIWorkspace
29+
30+
- name: Read mod name
31+
id: read_mod_name
32+
uses: christian-draeger/read-properties@1.0.1
33+
with:
34+
path: ${{ env.PROPERTIES_PATH }}
35+
property: archivesBaseName
36+
37+
- name: Read mod version
38+
id: read_mod_version
39+
uses: christian-draeger/read-properties@1.0.1
40+
with:
41+
path: ${{ env.PROPERTIES_PATH }}
42+
property: version
43+
44+
- name: Build with Gradle
45+
run: ./gradlew build
46+
47+
- name: Upload mod jar
48+
env:
49+
mod_jar_name: ${{ steps.read_mod_name.outputs.value }}-${{ steps.read_mod_version.outputs.value }}
50+
mod_jar_path: build/libs/${{ steps.read_mod_name.outputs.value }}-${{ steps.read_mod_version.outputs.value }}.jar
51+
uses: actions/upload-artifact@v1.0.0
52+
with:
53+
name: ${{ env.mod_jar_name }}
54+
path: ${{ env.mod_jar_path }}

0 commit comments

Comments
 (0)