Skip to content

Commit 2428f80

Browse files
committed
Update workflows
1 parent 512f64d commit 2428f80

File tree

2 files changed

+37
-38
lines changed

2 files changed

+37
-38
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,23 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v2
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
1515

16-
- name: Set up JDK
17-
uses: actions/setup-java@v2
18-
with:
19-
distribution: 'adopt'
20-
java-version: '17'
16+
- name: Set up JDK
17+
uses: actions/setup-java@v2
18+
with:
19+
distribution: "adopt"
20+
java-version: "17"
2121

22-
- name: Make gradlew executable
23-
run: chmod +x gradlew
24-
25-
- name: Build with Gradle
26-
run: ./gradlew build
22+
- name: Make gradlew executable
23+
run: chmod +x gradlew
2724

28-
- name: Archive artifacts
29-
uses: actions/upload-artifact@v2
30-
with:
31-
name: geyser-voice-artifact
32-
path: build/libs/
25+
- name: Build with Gradle
26+
run: ./gradlew build
3327

28+
- name: Archive artifacts
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: geyser-voice-artifact
32+
path: build/libs/

.github/workflows/release.yml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55
inputs:
66
tag:
77
required: true
8-
description: 'Tag'
8+
description: "Tag"
99
status:
1010
required: true
11-
description: 'Status (beta, stable)'
11+
description: "Status (beta, stable)"
1212

1313
env:
1414
VERSION: ${{ github.event.inputs.tag }}-${{ github.event.inputs.status }}
@@ -18,26 +18,26 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- name: Checkout repository
22-
uses: actions/checkout@v2
21+
- name: Checkout repository
22+
uses: actions/checkout@v2
23+
24+
- name: Set up JDK
25+
uses: actions/setup-java@v2
26+
with:
27+
distribution: "adopt"
28+
java-version: "17"
2329

24-
- name: Set up JDK
25-
uses: actions/setup-java@v2
26-
with:
27-
distribution: 'adopt'
28-
java-version: '17'
30+
- name: Make gradlew executable
31+
run: chmod +x gradlew
2932

30-
- name: Make gradlew executable
31-
run: chmod +x gradlew
32-
33-
- name: Build with Gradle
34-
run: ./gradlew build -PVERSION="${{ env.VERSION }}"
33+
- name: Build with Gradle
34+
run: ./gradlew build -PVERSION="${{ env.VERSION }}"
3535

36-
- name: Archive artifacts
37-
uses: actions/upload-artifact@v2
38-
with:
39-
name: geyser-voice-artifact
40-
path: build/libs/
36+
- name: Archive artifacts
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: geyser-voice-artifact
40+
path: build/libs/
4141

4242
publish_release:
4343
name: Publish release
@@ -46,13 +46,13 @@ jobs:
4646

4747
permissions:
4848
contents: write
49-
49+
5050
steps:
5151
- name: Checkout repository
5252
uses: actions/checkout@v2
5353

5454
- name: Download artifacts
55-
uses: actions/download-artifact@v2
55+
uses: actions/download-artifact@v3
5656
with:
5757
name: geyser-voice-artifact
5858
path: build/libs/

0 commit comments

Comments
 (0)