Skip to content

ci: use cysharp/actions for upload-artifact #32

ci: use cysharp/actions for upload-artifact

ci: use cysharp/actions for upload-artifact #32

Workflow file for this run

name: Build-Debug
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
Build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: Cysharp/Actions/.github/actions/setup-dotnet@main
# Build
- run: dotnet restore
- run: dotnet build -c Release
# Run Unit tests
- 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 -o $GITHUB_WORKSPACE/artifacts
# Upload & Publish
- uses: Cysharp/Actions/.github/actions/upload-artifact@main
with:
name: Packages
path: ./artifacts
retention-days: 1