Skip to content

ci-publish_nplug_proxy #6

ci-publish_nplug_proxy

ci-publish_nplug_proxy #6

name: ci-publish_nplug_proxy
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.Proxy/NPlug.Proxy.msbuildproj
- name: Package
shell: bash
run: |
dotnet pack -c Release ./src/NPlug.Proxy/NPlug.Proxy.msbuildproj -p:IsPackable=true
- name: Publish
shell: bash
run: |
dotnet nuget push ./src/NPlug.Proxy/bin/Release/*.nupkg -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json