Skip to content

Commit

Permalink
Update to artifact up-/download v4 and fix guide export on release.
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Dec 24, 2023
1 parent 9296ad2 commit 9cb3c06
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ jobs:
if: success() || failure()
run: npx junit-report-merger junit.xml "**/TEST-*.xml"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: test-results
path: junit.xml

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: dist
path: build/libs/
10 changes: 5 additions & 5 deletions .github/workflows/export_guide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
rm -f build/guide/guide.*.json
- name: Compress guide files before upload as artifact
run: tar cf guide.tar build/guide/
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: guide
path: guide.tar
Expand All @@ -48,11 +48,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- id: download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: guide
- name: Decompress guide tar
run: tar xf ${{steps.download.outputs.download-path}}
run: tar xf ${{steps.download.outputs.download-path}}/guide.tar
- name: Create ZIP
working-directory: build/guide
run: zip -r ../../guide-assets.zip .
Expand All @@ -72,7 +72,7 @@ jobs:
environment: Production
if: startsWith(github.ref, 'refs/tags/neoforge/v')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: guide
- name: Decompress guide tar
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
environment: Production
if: github.ref == 'refs/heads/main' && (github.event_name == 'workflow_dispatch' || github.event_name == 'schedule')
steps:
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: guide
- name: Decompress guide tar
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
# It is important to archive .gradle as well since gradle stores the incremental build state there
run: tar -I zstd -cf build.tar.zst .gradle build src/generated
- name: Upload build and gradle folders
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: build-artifacts
path: build.tar.zst
Expand All @@ -57,7 +57,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifacts
- name: Unpack build artifact
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./.github/actions/gradle-setup
- name: Download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifacts
- name: Unpack build artifact
Expand All @@ -116,7 +116,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifacts
- name: Unpack build artifact
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
- uses: actions/checkout@v3
- uses: ./.github/actions/gradle-setup
- name: Download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifacts
- name: Unpack build artifact
Expand All @@ -167,7 +167,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: build-artifacts
- name: Unpack build artifact
Expand Down

0 comments on commit 9cb3c06

Please sign in to comment.