Skip to content

Migrate to .net 8.0 #17

Migrate to .net 8.0

Migrate to .net 8.0 #17

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Publish to GitHub Packages
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# https://stackoverflow.com/questions/57889719/how-to-push-nuget-package-in-github-actions
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# Runs a set of commands using the runners shell
- name: .NET pack
run: dotnet pack -c Release -o ../drop /p:Version="0.1.$Env:GITHUB_RUN_NUMBER"
shell: pwsh
working-directory: src
- name: Push to GitHub Packages
run: dotnet nuget push (Join-Path "drop" "*.nupkg")
shell: pwsh