Skip to content

Publish Graeae.Models #10

Publish Graeae.Models

Publish Graeae.Models #10

# https://github.com/marketplace/actions/publish-nuget
name: Publish Graeae.Models
on:
push:
branches:
- main
paths:
- 'Graeae.Models/**/*'
workflow_dispatch:
jobs:
publish:
name: build, pack & publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
# Publish
- name: publish models
id: publish_models
uses: alirezanet/[email protected]
with:
PROJECT_FILE_PATH: Graeae.Models/Graeae.Models.csproj
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
INCLUDE_SYMBOLS: true
TAG_FORMAT: models-v*
- name: archive packages
uses: actions/upload-artifact@v2
with:
name: archive-packages
path: |
**/*.nupkg
**/*.snupkg