Skip to content

Commit

Permalink
ci: use cysharp/actions for upload-artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
guitarrapc committed Sep 18, 2024
1 parent a075a74 commit a444b4e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ jobs:
# .csproj included version will be used.
- run: dotnet pack -c Release --no-build --version-suffix "${{ steps.version-suffix.outputs.verseion }}" --include-symbols --include-source -o ./publish
# Upload & Publish
- uses: actions/upload-artifact@master
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
name: nuget
path: publish
path: ./publish
retention-days: 14
- name: "Push to NuGet.org"
run: dotnet nuget push "$GITHUB_WORKSPACE/publish/*.nupkg" --skip-duplicate -k ${{ steps.op-load-secret.outputs.NUGET_KEY }} -s https://api.nuget.org/v3/index.json
7 changes: 4 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
- run: dotnet test -c Release --no-build --logger trx --results-directory $GITHUB_WORKSPACE/artifacts
# Packaging
- name: dotnet pack
run: dotnet pack -c Release --no-build --version-suffix "$(versionSuffix)" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg --output $GITHUB_WORKSPACE/artifacts
run: dotnet pack -c Release --no-build --version-suffix "$(versionSuffix)" -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o $GITHUB_WORKSPACE/artifacts
# Upload & Publish
- uses: actions/upload-artifact@master
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
name: Packages
path: artifacts
path: ./artifacts
retention-days: 1

0 comments on commit a444b4e

Please sign in to comment.