Skip to content

Commit

Permalink
Update workflows to use upload-artifact v4 (#3097)
Browse files Browse the repository at this point in the history
* Update workflows to use upload-artifact v4

* only upload artifacts once

* use expression syntax
  • Loading branch information
SirYwell authored Jan 31, 2025
1 parent aa18957 commit 512a04d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
- name: Build on ${{ matrix.os }}
run: ./gradlew build -s
- name: Archive artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ matrix.os == 'ubuntu-latest' }} # only upload once, use linux builds
with:
name: FastAsyncWorldEdit-SNAPSHOT
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-*.jar
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
target-branch: main
target-directory: worldedit-bukkit
- name: Archive Artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: FastAsyncWorldEdit-Bukkit-SNAPSHOT
path: worldedit-bukkit/build/libs/FastAsyncWorldEdit-*.jar
Expand Down

0 comments on commit 512a04d

Please sign in to comment.