This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Merge branch 'main' of https://github.com/kurmann/AutomateVideoPublis… #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pack .NET Template | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
pack: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '8.0.x' | |
- name: Pack .NET Template Project | |
run: dotnet pack --configuration Release --no-build --output nupkg | |
# Der --no-build-Parameter verhindert das Kompilieren des Codes | |
# Optional: Veröffentlichen Sie das Paket auf NuGet | |
- name: Publish to NuGet.org | |
run: dotnet nuget push "nupkg/*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json |