Skip to content

Add Table of Contents to README (#21) #33

Add Table of Contents to README (#21)

Add Table of Contents to README (#21) #33

Workflow file for this run

name: CI
on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test --no-build --configuration Release --verbosity normal
- name: Pack
run: dotnet pack src/TheAppManager/TheAppManager.csproj --no-build --configuration Release --output ./nupkg
- name: Upload NuGet package artifact
uses: actions/upload-artifact@v6
with:
name: nuget-package
path: ./nupkg/*.nupkg
publish:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Build and Pack
run: dotnet pack src/TheAppManager/TheAppManager.csproj --configuration Release --output ./nupkg
- name: Push to NuGet
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate