Skip to content

Commit 512a04d

Browse files
authored
Update workflows to use upload-artifact v4 (#3097)
* Update workflows to use upload-artifact v4 * only upload artifacts once * use expression syntax
1 parent aa18957 commit 512a04d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ jobs:
2121
- name: Build on ${{ matrix.os }}
2222
run: ./gradlew build -s
2323
- name: Archive artifacts
24-
uses: actions/upload-artifact@v3
24+
uses: actions/upload-artifact@v4
25+
if: ${{ matrix.os == 'ubuntu-latest' }} # only upload once, use linux builds
2526
with:
2627
name: FastAsyncWorldEdit-SNAPSHOT
2728
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-*.jar

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
target-branch: main
6868
target-directory: worldedit-bukkit
6969
- name: Archive Artifacts
70-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v4
7171
with:
7272
name: FastAsyncWorldEdit-Bukkit-SNAPSHOT
7373
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-*.jar

0 commit comments

Comments
 (0)