From 3f9937e33ab7645f199820f674e1bc243ac41d9f Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Tue, 30 Apr 2024 12:43:25 +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 2fef2ed..22edefc 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -56,7 +56,7 @@ jobs: directory: src/StructureOfArraysGenerator.Unity # Store artifacts. - - uses: actions/upload-artifact@v3 + - uses: Cysharp/Actions/.github/actions/upload-artifact@main with: name: StructureOfArraysGenerator.${{ matrix.unity }}.unitypackage path: ./src/StructureOfArraysGenerator.Unity/*.unitypackage diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 02dfd2d..26298d2 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -36,7 +36,7 @@ jobs: - run: dotnet build -c Release -p:Version=${{ inputs.tag }} - run: dotnet test -c Release --no-build - run: dotnet pack -c Release --no-build -p:Version=${{ inputs.tag }} -o ./publish - - uses: actions/upload-artifact@v3 + - uses: Cysharp/Actions/.github/actions/upload-artifact@main with: name: nuget path: ./publish @@ -82,7 +82,7 @@ jobs: with: directory: src/StructureOfArraysGenerator.Unity # Store artifacts. - - uses: actions/upload-artifact@v3 + - uses: Cysharp/Actions/.github/actions/upload-artifact@main with: name: StructureOfArraysGenerator.${{ inputs.tag }}.unitypackage path: ./src/StructureOfArraysGenerator.Unity/StructureOfArraysGenerator.${{ inputs.tag }}.unitypackage From 5853f15da0f1ba94b2c12f2e961937113d7852b8 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Tue, 30 Apr 2024 14:06:37 +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 22edefc..b490ea8 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -60,3 +60,4 @@ jobs: with: name: StructureOfArraysGenerator.${{ matrix.unity }}.unitypackage path: ./src/StructureOfArraysGenerator.Unity/*.unitypackage + retention-days: 1 diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 26298d2..2892611 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -40,6 +40,7 @@ jobs: with: name: nuget path: ./publish + retention-days: 1 build-unity: needs: [update-packagejson] @@ -87,6 +88,7 @@ jobs: name: StructureOfArraysGenerator.${{ inputs.tag }}.unitypackage path: ./src/StructureOfArraysGenerator.Unity/StructureOfArraysGenerator.${{ inputs.tag }}.unitypackage if-no-files-found: error + retention-days: 1 # release create-release: