Publish Graeae.Models #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |