Skip to content

[upgrade]: .NET SDK --> v8.0.303 #127

[upgrade]: .NET SDK --> v8.0.303

[upgrade]: .NET SDK --> v8.0.303 #127

Workflow file for this run

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET Test
on:
pull_request:
push:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: ./global.json
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
- name: Set package version environment variable
run: echo "PACKAGE_VERSION=$(date -u '+%Y.%m.%d')-$(git rev-parse --short $GITHUB_SHA)" >> $GITHUB_ENV
- name: pack
run: dotnet pack --output ./artifacts -p:version=${PACKAGE_VERSION}
- name: publish-github
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.PACKAGES_PAT }} --source https://nuget.pkg.github.com/nforgeio/index.json --skip-duplicate