Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Merge pull request #38 from kurmann/29-dotnet-workflow-lässt-sich-von…
Browse files Browse the repository at this point in the history
…-hand-starten-1

Dotnet-Workflow lässt sich von Hand starten
  • Loading branch information
kurmann authored Apr 25, 2024
2 parents b7fa74d + c72d433 commit 83982ff
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest

env:
CSPROJ_FILE: Templates/Templates.csproj
CSPROJ_FILE: Templates.csproj
DOTNET_VERSION: '8.0.x'

steps:
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch: # Erlaubt manuelles Auslösen des Workflows über die GitHub-Oberfläche

env:
CSPROJ_FILE: Templates/Templates.csproj
CSPROJ_FILE: Templates.csproj
DOTNET_VERSION: '8.0.x'

jobs:
Expand Down Expand Up @@ -49,17 +49,19 @@ jobs:

- name: Build
run: dotnet build ${{ env.CSPROJ_FILE }} --no-restore --configuration Release


# Packen des Projekts in ein NuGet-Paket
# Hinweis: Kein Symbolpaket da es sich um ein Template-Projekt handelt.
- name: Pack
run: |
run: |
echo "Using version ${{ needs.get_release.outputs.release_version }} from setup job."
dotnet pack ${{ env.CSPROJ_FILE }} --no-build --configuration Release \
-p:PackageVersion=${{ needs.get_release.outputs.release_version }} \
-p:PackageReleaseNotes=${{ needs.get_release.outputs.release_url }} \
-p:PackageProjectUrl="https://github.com/${{ github.repository }}" \
-p:RepositoryUrl="https://github.com/${{ github.repository }}.git" \
-p:RepositoryType="git" \
-o nupkg
-o nupkg
shell: bash

- name: List output files
Expand Down

0 comments on commit 83982ff

Please sign in to comment.