Skip to content

Merge branch 'develop' #9

Merge branch 'develop'

Merge branch 'develop' #9

Workflow file for this run

name: Publish NuGet Package
on:
push:
tags: [ 'v*.*.*', 'v*.*', 'v*.*.*-alpha*', 'v*.*-alpha*' ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
source-url: https://api.nuget.org/v3/index.json
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_API_KEY }}
- name: Restore dependencies
run: dotnet restore
- name: Build Gml.Interfaces
run: dotnet build src/Gml.Interfaces/Gml.Interfaces.csproj --configuration Release
- name: Pack Gml.Interfaces
run: dotnet pack src/Gml.Interfaces/Gml.Interfaces.csproj --configuration Release --no-build --output ./nupkgs
- name: Build Gml.Domains
run: dotnet build src/Gml.Domains/Gml.Domains.csproj --configuration Release
- name: Pack Gml.Domains
run: dotnet pack src/Gml.Domains/Gml.Domains.csproj --configuration Release --no-build --output ./nupkgs
- name: Build Gml.Dto
run: dotnet build src/Gml.Dto/Gml.Dto.csproj --configuration Release
- name: Pack Gml.Dto
run: dotnet pack src/Gml.Dto/Gml.Dto.csproj --configuration Release --no-build --output ./nupkgs
- name: Publish to NuGet.org
run: dotnet nuget push "./nupkgs/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate