From 5c60989b208cb9642eca33704e19543c430335c8 Mon Sep 17 00:00:00 2001 From: Loong Date: Tue, 19 Dec 2023 15:29:51 +0800 Subject: [PATCH] ci: bump actions/upload-artifact and actions/download-artifact to v4 --- .github/workflows/publish-aur.yml | 2 +- .github/workflows/release.yml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-aur.yml b/.github/workflows/publish-aur.yml index b7388229..864951d4 100644 --- a/.github/workflows/publish-aur.yml +++ b/.github/workflows/publish-aur.yml @@ -90,7 +90,7 @@ jobs: git commit -m "github-actions[bot]: Upgrade to ${{ inputs.pkgver || github.ref_name }}" git push origin --verbose ${{ inputs.dryrun && '--dry-run' || '' }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: package path: maa-cli/*.pkg.tar.zst diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a284f3b..ad2dc4ef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -143,7 +143,7 @@ jobs: run: | tar -cvf "$CARGO_BUILD_TARGET.tar" -C "target/$CARGO_BUILD_TARGET/release" maa - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: maa_cli-${{ env.CARGO_BUILD_TARGET }} path: ${{ env.CARGO_BUILD_TARGET }}.tar @@ -159,7 +159,7 @@ jobs: # download all artifacts, even if not all are used, # because this action don't support wildcards - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Create universal binaries run: | for arch in x86_64 aarch64; do @@ -170,7 +170,7 @@ jobs: lipo -create -output maa maa_cli-x86_64-apple-darwin/maa maa_cli-aarch64-apple-darwin/maa tar -cvf "universal-apple-darwin.tar" maa - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: maa_cli-universal-apple-darwin path: universal-apple-darwin.tar @@ -193,7 +193,7 @@ jobs: COMMIT: ${{ needs.meta.outputs.commit }} steps: - name: Download Artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Checkout version branch uses: actions/checkout@v4 with: