Skip to content

Create push_nuget.yml #1

Create push_nuget.yml

Create push_nuget.yml #1

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: publish
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build-autoinject:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: |
dotnet build -c Release
dotnet pack ./src/AutoInjectGenerator/AutoInjectGenerator.csproj -c Release -o publish
- name: Push
run: |
dotnet nuget push 'publish/*.nupkg' -s https://api.nuget.org/v3/index.json -k ${{secrets.AUTO_INJECT_KEY}} --skip-duplicate
build-autowasmapi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Build
run: |
dotnet build -c Release
dotnet pack ./src/AutoWasmApiGenerator/AutoWasmApiGenerator.csproj -c Release -o publish
- name: Push
run: |
dotnet nuget push 'publish/*.nupkg' -s https://api.nuget.org/v3/index.json -k ${{secrets.AUTO_WASM_API_KEY}} --skip-duplicate