Skip to content

Update .NET 8.0 GA version #77

Update .NET 8.0 GA version

Update .NET 8.0 GA version #77

Workflow file for this run

name: .NET Core
on:
push:
branches: ["main", "dev*"]
tags: ["*.*.*"]
pull_request:
branches: [main]
jobs:
build:
strategy:
fail-fast: false
matrix:
runs-on: [macos-11, ubuntu-22.04, windows-latest]
name: ${{ matrix.runs-on }}
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup .NET Core 8.0.x, 7.0.x and 6.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: dotnet info
run: dotnet --info
- name: Install dependencies
run: dotnet restore --verbosity normal
- name: Build
run: dotnet build --configuration Release --no-restore --verbosity normal
- name: Test
run: dotnet test -c Release --no-build --verbosity normal
- name: Pack
run: dotnet pack -c Release -o ./artifacts/packages/ --no-build --verbosity normal
- if: ${{ success() && runner.os == 'Windows' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
name: Push MyGet
run: dotnet nuget push .\artifacts\packages\*.nupkg -s https://www.myget.org/F/netlah/api/v2/package -k ${{ secrets.MYGET }}
- if: ${{ success() && runner.os == 'Windows' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) }}
name: Publish Nuget to GitHub registry
run: dotnet nuget push .\artifacts\packages\*.nupkg -s https://nuget.pkg.github.com/NetLah/index.json --skip-duplicate -k ${{ secrets.PUSH_GITHUB_REGISTRY_TOKEN }}