Skip to content

ci-publish_nplug_validator #5

ci-publish_nplug_validator

ci-publish_nplug_validator #5

name: ci-publish_nplug_validator
on:
workflow_dispatch:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0
- name: Install .NET 7.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: '7.0'
- name: Build
shell: bash
run: |
dotnet build -c Release ./src/NPlug.Validator/NPlug.Validator.csproj
- name: Package
shell: bash
run: |
dotnet pack -c Release ./src/NPlug.Validator/NPlug.Validator.csproj -p:IsPackable=true
- name: Publish
shell: bash
run: |
dotnet nuget push ./src/NPlug.Validator/bin/Release/*.nupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json