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
CarmJos committed Sep 17, 2024
1 parent 73601c3 commit a0b0cd3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Upload assets"
uses: actions/upload-artifact@v4
with:
name: assets
path: "./.asset/"
retention-days: 5

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

- name: "Upload assets"
uses: actions/upload-artifact@v4
with:
name: assets
path: ".asset/*"
retention-days: 5
4 changes: 2 additions & 2 deletions plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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 Expand Up @@ -171,7 +171,7 @@
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/MAN IFEST.MF</exclude>
<exclude>META-INF/MANIFEST.MF</exclude>
<exclude>META-INF/*.txt</exclude>
</excludes>
</filter>
Expand Down

0 comments on commit a0b0cd3

Please sign in to comment.