a #20
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: CI | |
on: | |
push: | |
branches: | |
- preview | |
paths: | |
- '.github/workflows/ci.yml' | |
- 'src/Impostor*/**' | |
- 'build.cake' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'Next-Fast' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 9.x | |
- name: Run the Cake script | |
uses: cake-build/cake-action@v3 | |
with: | |
verbosity: Minimal | |
script-path: ./build.cake | |
- name: Publish API To NuGet | |
run: | | |
dotnet nuget push "./build/api/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGETKEY }} | |
- name: Publish Extension to NuGet | |
run: | | |
dotnet nuget push "./build/extension/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGETKEY }} | |