Skip to content

fix: save login credential after LoginByQrCode #44

fix: save login credential after LoginByQrCode

fix: save login credential after LoginByQrCode #44

name: Publish package
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
working-directory: ./Mikibot.Crawler
- name: Build
run: dotnet pack
working-directory: ./Mikibot.Crawler
- name: publish-to-nuget
run: dotnet nuget push **/*.nupkg --api-key=${{secrets.NUGET_KEY}} --skip-duplicate --source=https://api.nuget.org/v3/index.json
working-directory: ./Mikibot.Crawler
- name: publish-to-github
run: dotnet nuget push **/*.nupkg --api-key=${{secrets.GH_PACKAGE_KEY}} --skip-duplicate --source=https://nuget.pkg.github.com/Deliay/index.json
working-directory: ./Mikibot.Crawler