Skip to content

Commit

Permalink
Merge pull request #767 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 committed Apr 30, 2024
2 parents da3b2db + 20d4f5c commit 32e0017
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
- run: dotnet build -c ${{ env.BUILD_CONFIG }} ./MagicOnion.sln
# pack
- run: dotnet pack -c ${{ env.BUILD_CONFIG }} ./MagicOnion.Packaging.slnf --include-symbols --include-source --no-build -p:VersionSuffix=${MAGICONION_VERSION} -o ./publish
- uses: actions/upload-artifact@v4
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
name: nuget
path: ./publish/
retention-days: 1

canary-push:
needs: [canary-build]
Expand All @@ -50,7 +51,7 @@ jobs:
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN_PUBLIC }}
VSS_NUGET_EXTERNAL_FEED_ENDPOINTS_PUBLIC_CANARY: "op://GitHubActionsPublic/VSS_NUGET_EXTERNAL_FEED_ENDPOINTS_PUBLIC_CANARY/credential"
- uses: actions/download-artifact@v4
- uses: Cysharp/Actions/.github/actions/download-artifact@main
# Upload to NuGet
- run: echo "VSS_NUGET_EXTERNAL_FEED_ENDPOINTS=${FEED_ENDPOINTS}" >> $GITHUB_ENV
env:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ jobs:
directory: src/MagicOnion.Client.Unity

# Store artifacts.
- uses: actions/upload-artifact@v4
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
name: MagicOnion.Client.Unity.${{ matrix.unity }}.unitypackage
path: ./src/MagicOnion.Client.Unity/MagicOnion.Client.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 @@ -37,10 +37,11 @@ jobs:
# pack nuget
- run: dotnet pack -c Release ./MagicOnion.Packaging.slnf --include-symbols --include-source --no-build -o ./publish
- run: cd ./publish/ && ls . | grep -P 'MagicOnion\.\d+\.\d+\.\d+\.snupkg' | xargs rm
- uses: actions/upload-artifact@v4
- 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 @@ -84,10 +85,11 @@ jobs:
directory: src/MagicOnion.Client.Unity

# Store artifacts.
- uses: actions/upload-artifact@v4
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
name: MagicOnion.Client.Unity.unitypackage
path: ./src/MagicOnion.Client.Unity/MagicOnion.Client.Unity.unitypackage
retention-days: 1

# release
create-release:
Expand Down

0 comments on commit 32e0017

Please sign in to comment.