From 9d5e211d2d56e83d7717afaa9685c9c74c2259b3 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:43:21 +0900 Subject: [PATCH 1/2] ci: change upload-artifact & download-artifact to Cysharp/Actions --- .github/workflows/build-debug.yml | 2 +- .github/workflows/build-release.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index c3c34ea..03072b6 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -58,7 +58,7 @@ jobs: directory: src/Ulid.Unity # Store artifacts. - - uses: actions/upload-artifact@v2 + - uses: Cysharp/Actions/.github/actions/upload-artifact@main with: name: Ulid.Unity.${{ matrix.unity }}.unitypackage.zip path: ./src/Ulid.Unity/*.unitypackage diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index e703ae1..47fbad5 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -34,7 +34,7 @@ jobs: - run: dotnet pack -c Release --no-build -p:Version=${{ inputs.tag }} -o ./publish # Store artifacts. - - uses: actions/upload-artifact@v2 + - uses: Cysharp/Actions/.github/actions/upload-artifact@main with: name: nuget path: ./publish/ @@ -82,7 +82,7 @@ jobs: directory: src/Ulid.Unity # Store artifacts. - - uses: actions/upload-artifact@v1 + - uses: Cysharp/Actions/.github/actions/upload-artifact@main with: name: Ulid.Unity.${{ inputs.tag }}.unitypackage path: ./src/Ulid.Unity/Ulid.Unity.${{ inputs.tag }}.unitypackage From ea613e27912112a2bae385c61c267d69c1118bd8 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:06:43 +0900 Subject: [PATCH 2/2] ci: set upload-artifact retention-period: 1 --- .github/workflows/build-debug.yml | 1 + .github/workflows/build-release.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 03072b6..1d2b8d9 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -62,3 +62,4 @@ jobs: with: name: Ulid.Unity.${{ matrix.unity }}.unitypackage.zip path: ./src/Ulid.Unity/*.unitypackage + retention-days: 1 diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 47fbad5..9ab2524 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -38,6 +38,7 @@ jobs: with: name: nuget path: ./publish/ + retention-days: 1 build-unity: needs: [update-packagejson] @@ -86,6 +87,7 @@ jobs: with: name: Ulid.Unity.${{ inputs.tag }}.unitypackage path: ./src/Ulid.Unity/Ulid.Unity.${{ inputs.tag }}.unitypackage + retention-days: 1 # release create-release: