more update #32
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
name: Lagrange.XocMat NuGet Push | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
name: 发布Lagrange.XocMat | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Pack | |
run: | | |
dotnet restore | |
dotnet build -c Release Lagrange.XocMat | |
dotnet pack -c Release Lagrange.XocMat | |
dotnet pack -c Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg Lagrange.XocMat | |
- name: Add private GitHub registry to NuGet Lagrange.XocMat | |
run: dotnet nuget add source --username Controllerdestiny --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Lagrange.XocMat/index.json" | |
- name: Push generated package to NuGet Lagrange.XocMat | |
run: dotnet nuget push ./Lagrange.XocMat/bin/Release/*.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate --api-key ${{ secrets.NUGETAPIKEY }} |