Skip to content

Commit

Permalink
Merge pull request #31 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 adb24b6 + 888b6db commit c3d914b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ jobs:
- run: dotnet build -c Debug -p:DefineConstants=RUNNING_IN_CI
- run: dotnet pack ./src/LogicLooper/LogicLooper.csproj -c Debug --no-build -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
- run: dotnet test -c Debug --no-build
- uses: actions/upload-artifact@v4
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
name: nuget
path: ./src/LogicLooper/bin/Debug/*.*nupkg
retention-days: 1

test-release-build:
name: Run tests using Release build
needs: [ build-debug ]
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ jobs:
- run: dotnet build -c Release -p:VersionPrefix=${{ inputs.tag }} -p:DefineConstants=RUNNING_IN_CI
- run: dotnet test -c Release --no-build
- run: dotnet pack -c Release --no-build -p:VersionPrefix=${{ inputs.tag }} -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg -o ./publish
- uses: actions/upload-artifact@v4
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
name: nuget
path: ./publish
retention-days: 1

create-release:
needs: [build-dotnet]
Expand Down

0 comments on commit c3d914b

Please sign in to comment.