Skip to content

Commit

Permalink
ci: only publish package from main
Browse files Browse the repository at this point in the history
  • Loading branch information
arjendev committed Sep 20, 2023
1 parent 60d5d9b commit 55fe427
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: CI
on: [push]

jobs:
build:

build_and_publish:
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -41,4 +40,5 @@ jobs:
- name: Create the package
run: dotnet pack --configuration Release src/AzureDataFactory.TestingFramework
- name: Publish the package to GPR
if: github.ref == 'refs/heads/master'
run: dotnet nuget push src/AzureDataFactory.TestingFramework/bin/Release/*.nupkg --source "https://nuget.pkg.github.com/arjendev/index.json" --api-key ${{ secrets.PUBLISH_KEY }} --skip-duplicate

0 comments on commit 55fe427

Please sign in to comment.