Skip to content

Update to .Net 8 and new version Q sharp #16

Update to .Net 8 and new version Q sharp

Update to .Net 8 and new version Q sharp #16

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 Core @ Latest"
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.101' #https://github.com/NuGet/Home/issues/3406 Went to a patch version that seems to work
source-url: https://nuget.pkg.github.com/qsharp-community/index.json
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