Skip to content

Commit

Permalink
Merge pull request #11 from sylac/develop
Browse files Browse the repository at this point in the history
publish pkg separately
  • Loading branch information
sylac authored Nov 3, 2024
2 parents 584035a + b377534 commit e65924b
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,26 @@ jobs:
- name: Package
run: dotnet pack -c Release --no-build --output nupkgs

- name: Publish
run: dotnet nuget push nupkgs/ -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}
- name: Publish Mvvm.Core
if: endsWith(github.ref, 'mvvm-core')
shell: pwsh
run: |
$file = Get-ChildItem -Path nupkgs -Filter "Sylac.Mvvm.Maui*.nupkg" | Select-Object -First 1
if ($file) { dotnet nuget push $file.FullName -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} || true }
else { Write-Output "No package file found for Mvvm.Core" }
- name: Publish Mvvm.Generators
if: endsWith(github.ref, 'mvvm-generators')
shell: pwsh
run: |
$file = Get-ChildItem -Path nupkgs -Filter "Sylac.Mvvm.Generators*.nupkg" | Select-Object -First 1
if ($file) { dotnet nuget push $file.FullName -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} || true }
else { Write-Output "No package file found for Mvvm.Generators" }
- name: Publish Mvvm.Maui
if: endsWith(github.ref, 'mvvm-maui')
shell: pwsh
run: |
$file = Get-ChildItem -Path nupkgs -Filter "Sylac.Mvvm.Maui*.nupkg" | Select-Object -First 1
if ($file) { dotnet nuget push $file.FullName -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} || true }
else { Write-Output "No package file found for Mvvm.Maui" }

0 comments on commit e65924b

Please sign in to comment.