Skip to content

try removing NUGET_AUTH_TOKEN to simplify and fix 401 #20

try removing NUGET_AUTH_TOKEN to simplify and fix 401

try removing NUGET_AUTH_TOKEN to simplify and fix 401 #20

Workflow file for this run

on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Restore dependencies
run: dotnet restore src/HealthCheck.sln --configfile src/NuGet.config
- name: Build
run: dotnet build --configuration Release src/HealthCheck.sln
- name: Test
run: dotnet test --configuration Release --no-build src/HealthCheck.sln
- name: Pack
run: dotnet pack --configuration Release --no-build src/HealthCheck.sln -o dist
- name: Push
run: dotnet nuget push dist/*.nupkg --source https://nuget.pkg.github.com/cerberix/index.json --api-key ${GITHUB_TOKEN} --skip-duplicate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}