Skip to content

Projektdateien hinzufügen. #1

Projektdateien hinzufügen.

Projektdateien hinzufügen. #1

Workflow file for this run

name: Build and Publish NuGet Package
on:
push:
branches:
- master
paths-ignore:
- ".github/**"
- "**/*.md"
- "**/*.gitignore"
- "**/*.gitattributes"
workflow_dispatch:
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '10.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build project
run: dotnet build --configuration Release --no-restore
- name: Pack project
run: dotnet pack --configuration Release --no-build --output ./artifacts
- name: Publish to NuGet
run: |
dotnet nuget push "./artifacts/*.nupkg" \
--api-key ${{ secrets.NUGET_API_KEY }} \
--source https://api.nuget.org/v3/index.json \
--skip-duplicate