-
-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (48 loc) · 1.7 KB
/
SML_main.yml
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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: StructuredModLoader main
on:
push:
branches: [ main ]
paths:
- 'build.gradle'
- '!.github/*'
workflow_dispatch:
jobs:
build:
name: Build StructuredModLoader
runs-on: ${{ matrix.os }}
strategy:
matrix:
java:
- '17'
os: [self-hosted, ubuntu-latest, windows-latest]
steps:
- run: echo "Triggered by ${{ github.event_name }}; On ${{ runner.name }} (${{ runner.os }})"
- run: echo "Branch ${{ github.ref }}; Repository ${{ github.repostitory }}"
- uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Gradle Wrapper Validation
# You may pin to the exact commit or the version.
# uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
uses: gradle/[email protected]
- name: Gradle Build Action
# You may pin to the exact commit or the version.
# uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7
uses: gradle/[email protected]
with:
# Paths within Gradle User Home to cache.
gradle-home-cache-includes: 'build/*'
# Paths within Gradle User Home to exclude from cache.
- name: Publish to GitHub
run: pushRelease
shell: pwsh
- name: Publish to CurseForge
run: pushToCurseForge
shell: pwsh