Skip to content

Commit

Permalink
ci(upload): Update to upload-artifact@v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Sraconni committed Nov 7, 2024
1 parent 2b44ba6 commit 30ef179
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Upload artifacts"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: artifacts
path: "**/target/"
retention-days: 1 # 仅保留1天。

- name: "Upload assets"
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: assets
path: ".asset/"
retention-days: 5
path: ".asset/*.jar"
retention-days: 5
include-hidden-files: true
2 changes: 1 addition & 1 deletion plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
</execution>
</executions>
<configuration>
<finalName>${project.name}-${project.parent.version}</finalName>
<finalName>${project.name}-${project.version}</finalName>
<outputDirectory>${project.parent.basedir}/.asset/</outputDirectory>
<createDependencyReducedPom>false</createDependencyReducedPom>
<relocations>
Expand Down

0 comments on commit 30ef179

Please sign in to comment.