Skip to content

Commit 69b2fb7

Browse files
committed
workflows
1 parent 67d4976 commit 69b2fb7

File tree

2 files changed

+29
-14
lines changed

2 files changed

+29
-14
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Build Workflow
22

3-
name: Build
3+
name: Build with Gradle
44

55
on:
66
pull_request:
@@ -19,18 +19,21 @@ jobs:
1919

2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v4
2323
with:
24-
fetch-depth: 0
24+
fetch-depth: 10
2525

26-
- name: Set up JDK 17
27-
uses: actions/setup-java@v2
26+
- name: Set up JDK 8, 16, 17, 21
27+
uses: actions/setup-java@v4
2828
with:
29-
java-version: 17
3029
distribution: temurin
31-
cache: 'gradle'
30+
java-version: |
31+
8
32+
16
33+
17
34+
21
3235
33-
- uses: actions/cache@v2
36+
- uses: actions/cache@v4
3437
with:
3538
path: |
3639
~/.gradle/caches
@@ -40,14 +43,9 @@ jobs:
4043
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
4144
restore-keys: |
4245
${{ runner.os }}-gradle-
46+
4347
- name: Chmod Gradle
4448
run: chmod +x ./gradlew
4549

4650
- name: Build
4751
run: ./gradlew build --no-daemon
48-
49-
- name: Upload Build Artifacts
50-
uses: actions/upload-artifact@v2
51-
with:
52-
name: artifacts
53-
path: versions/**/build/libs/
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Mod-Project Integration
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
pull_request:
7+
types: [opened]
8+
9+
jobs:
10+
add-to-project:
11+
name: Add issue/PR to project
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/[email protected]
15+
with:
16+
project-url: https://github.com/orgs/Polyfrost/projects/9
17+
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}

0 commit comments

Comments
 (0)