Skip to content

1.0.1-preview.7

1.0.1-preview.7 #179

name: Package Push Nuget
on:
release:
types: [published]
workflow_dispatch:
jobs:
package-build:
name: package build and push
runs-on: ubuntu-latest
steps:
- name: git pull
uses: actions/checkout@v2
- name: run a one-line script
run: env
- name: setting dotnet version
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
include-prerelease: true
- name: restore
run: dotnet restore
- name: build
run: dotnet build --no-restore /p:ContinuousIntegrationBuild=true
- name: pack
run: dotnet pack --include-symbols -p:PackageVersion=$GITHUB_REF_NAME
- name: package push
run: dotnet nuget push "**/*.symbols.nupkg" -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json