Skip to content

Commit

Permalink
Merge pull request #13 from Cysharp/feature/artifact
Browse files Browse the repository at this point in the history
ci: change upload-artifact & download-artifact to Cysharp/Actions
  • Loading branch information
guitarrapc authored Apr 30, 2024
2 parents 064239d + 5853f15 commit 10fe325
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ 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
retention-days: 1
6 changes: 4 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ 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
retention-days: 1

build-unity:
needs: [update-packagejson]
Expand Down Expand Up @@ -82,11 +83,12 @@ 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
if-no-files-found: error
retention-days: 1

# release
create-release:
Expand Down

0 comments on commit 10fe325

Please sign in to comment.