Bump xunit.runner.visualstudio from 2.5.6 to 2.5.7 (#369) #67
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish preview | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- src/** | |
- .github/workflows/** | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_CLI_TELEMETRY_OPTOUT: true | |
jobs: | |
pack: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET SDKs | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
source-url: https://nuget.pkg.github.com/PublicApiGenerator/index.json | |
env: | |
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Install dependencies | |
working-directory: src | |
run: dotnet restore | |
- name: Build solution [Release] | |
working-directory: src | |
run: dotnet build --no-restore -c Release | |
- name: Publish Tool [Release] | |
working-directory: src | |
run: | | |
dotnet publish PublicApiGenerator.Tool/PublicApiGenerator.Tool.csproj --no-restore --no-build -c Release -f netcoreapp3.1 && | |
dotnet publish PublicApiGenerator.Tool/PublicApiGenerator.Tool.csproj --no-restore --no-build -c Release -f net6.0 | |
- name: Pack solution [Release] | |
working-directory: src | |
run: dotnet pack --no-restore --no-build -c Release -o out | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Nuget packages | |
path: | | |
src/out/* | |
- name: Publish Nuget packages to GitHub registry | |
working-directory: src | |
run: dotnet nuget push "out/*" -k ${{secrets.GITHUB_TOKEN}} |