Skip to content

Main DiolBackendService Release #8

Main DiolBackendService Release

Main DiolBackendService Release #8

name: Main DiolBackendService Release
on:
workflow_dispatch:
env:
CSPROJ_PATH: 'source/Diol/src/applications/DiolBackendService/DiolBackendService.csproj'
NUPKGNAME: 'DiolBackendService'
DISTR_PATH: ${{ github.workspace }}\distr
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: '8.0.x'
- name: Build
run: dotnet build ${{ env.CSPROJ_PATH }} --configuration Release
- name: Pack
run: |
dotnet pack ${{ env.CSPROJ_PATH }} --configuration Release --output ${{ env.DISTR_PATH }}
ls ${{ env.DISTR_PATH }}
- name: Push
run: |
dotnet nuget add source https://nuget.pkg.github.com/Dotnet-IO-logger/index.json --name github --username Dotnet-IO-logger --password ${{ secrets.GITHUB_TOKEN }}
dotnet nuget push "${{ env.DISTR_PATH }}\*.nupkg" --source "https://nuget.pkg.github.com/Dotnet-IO-logger/index.json"