Skip to content

Commit

Permalink
Correcting pipelines for multiple frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffpatton1971 committed Aug 26, 2024
1 parent b8b5d77 commit ef48173
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ jobs:
run: dotnet build ${{ github.workspace }}/Logger/Logger.sln --configuration Release --no-restore

- name: Package
run: dotnet pack ${{ github.workspace }}/Logger/Logger.sln --configuration Release --output nupkgs
run: dotnet pack ${{ github.workspace }}/Logger/Logger.csproj --configuration Release --output nupkgs

- name: Publish NuGet Package
run: |
nuget push **/*.nupkg -ApiKey ${{secrets.NUGET_API_KEY}} -Source https://api.nuget.org/v3/index.json
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
19 changes: 14 additions & 5 deletions .github/workflows/milestone-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,21 @@ jobs:
- name: Build Project
run: dotnet build Logger/Logger.csproj --configuration Release

- name: Publish Project
run: dotnet publish Logger/Logger.csproj --configuration Release --output ./publish
- name: Publish Project for .NET 6.0
run: dotnet publish Logger/Logger.csproj --configuration Release --framework net6.0 --output ./publish/net6.0

- name: Generate Documentation
- name: Publish Project for .NET 7.0
run: dotnet publish Logger/Logger.csproj --configuration Release --framework net7.0 --output ./publish/net7.0

- name: Generate Documentation for .NET 6.0
run: |
xmldocmd ./publish/net6.0/Logger.dll Docs --visibility private --clean --namespace ModPosh.Logger --namespace-pages
env:
PATH: ${{ github.runner.tool_cache }}/.dotnet/tools:$PATH:~/.dotnet/tools

- name: Generate Documentation for .NET 7.0
run: |
xmldocmd ./publish/Logger.dll Docs --visibility private --clean --namespace ModPosh.Logger --namespace-pages
xmldocmd ./publish/net7.0/Logger.dll Docs --visibility private --clean --namespace ModPosh.Logger --namespace-pages
env:
PATH: ${{ github.runner.tool_cache }}/.dotnet/tools:$PATH:~/.dotnet/tools

Expand All @@ -66,4 +75,4 @@ jobs:
git add Docs/
git commit -m "Update documentation for release v${{ env.VERSION }}"
git push origin ${{ github.ref_name }}
if: success()
if: success()

0 comments on commit ef48173

Please sign in to comment.