Skip to content

Generate test NuGets on PR builds #175

Generate test NuGets on PR builds

Generate test NuGets on PR builds #175

Workflow file for this run

name: Build for CI
on:
push:
branches: [ "main" ]
paths-ignore:
- "**.md"
pull_request:
branches: [ "main" ]
jobs:
build-plugin-ci:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Restore dependencies
run: dotnet restore src\Plugin.Maui.Audio\Plugin.Maui.Audio.csproj
- name: Build
run: dotnet build src\Plugin.Maui.Audio\Plugin.Maui.Audio.csproj -c Release
- name: Pack
run: dotnet pack src\Plugin.Maui.Audio\Plugin.Maui.Audio.csproj -o output -p:PackageVersion=2.2.0-preview1
- name: Add NuGet Source for Push
run: dotnet nuget add source https://jfversluis.pkgs.visualstudio.com/Plugin.Maui.Audio/_packaging/Plugin.Maui.Audio/nuget/v3/index.json --name PrivateFeed --username ${{ secrets.PUBLISH_USER }} --password ${{ secrets.PUBLISH_PAT }}
- name: Push
run: dotnet nuget push "output/*.nupkg" --source PrivateFeed --api-key AzureArtifacts