Skip to content

Commit

Permalink
Create push_nuget.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvelTiter authored Jul 28, 2024
1 parent 2a399b5 commit a7a2475
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/push_nuget.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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

0 comments on commit a7a2475

Please sign in to comment.