Skip to content

Commit e91ac19

Browse files
YAML is pain
1 parent 51b25e1 commit e91ac19

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

.github/workflows/build.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,42 @@ jobs:
1313
env:
1414
PROPERTIES_PATH: gradle.properties
1515

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 }}
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)