Skip to content

Commit

Permalink
build: nuget package only on pyrevit-*main
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Ghensi committed May 28, 2024
1 parent a0d20de commit ac92922
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ jobs:
dotnet-version: '6.0.x'
- name: Build
run: pwsh make.ps1
- name: Package
run: pwsh make.ps1 package
- name: Test (net48)
run: ./make.ps1 -frameworks net48 test-all
shell: pwsh
- name: Test (net6.0)
run: ./make.ps1 -frameworks net6.0 test-all
shell: pwsh
- name: Package
run: pwsh make.ps1 package
if: ${{ contains(fromJSON('["refs/heads/pyrevit-main","refs/heads/pyrevit-5-main"]'), github.ref) }}
- name: Push
run: dotnet nuget push Package\Release\Packages\*.nupkg --source https://nuget.pkg.github.com/pyrevitlabs/index.json --api-key ${{ secrets.GITHUB_TOKEN }}
run: dotnet nuget push Package\Release\Packages\*.nupkg --skip-duplicate --source https://nuget.pkg.github.com/pyrevitlabs/index.json --api-key ${{ secrets.GITHUB_TOKEN }}
if: ${{ contains(fromJSON('["refs/heads/pyrevit-main","refs/heads/pyrevit-5-main"]'), github.ref) }}

0 comments on commit ac92922

Please sign in to comment.