Fixed the problem that Picture send by NTQQ can not be received #184
Workflow file for this run
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.Core NuGet Push | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.100 | |
- name: Build and Pack | |
run: | | |
cd ./Lagrange.Core | |
dotnet build --configuration Release | |
dotnet pack --configuration Release | |
dotnet pack --configuration Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg | |
ls | |
ls ./bin/Release/ | |
- name: Install Nuget | |
uses: nuget/setup-nuget@v1 | |
with: | |
nuget-version: '5.x' | |
- name: Add private GitHub registry to NuGet | |
run: | | |
dotnet nuget add source --username Linwenxuan05 --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Linwenxuan05/index.json" | |
- name: Push generated package to GitHub registry and NuGet | |
run: | | |
dotnet nuget push .\Lagrange.Core\bin\Release\*.nupkg --source "github" --api-key ${{ secrets.GIT_TOKEN }} | |
nuget push .\Lagrange.Core\bin\Release\*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NUGETAPIKEY }} |