Skip to content

Commit

Permalink
Publish canary during master ci runs
Browse files Browse the repository at this point in the history
  • Loading branch information
MeikTranel committed Oct 19, 2021
1 parent 0e5c9e6 commit 88dc9de
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:

env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
PackageOutputPath: ${{ github.workspace }}/out/packages
GPR_REPOURI: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json

jobs:
build:
Expand All @@ -19,7 +21,7 @@ jobs:
- name: Test
run: dotnet test -c Release -p:EnableCoverage=true -p:ContinuousIntegrationBuild=true -p:BuildType=canary
- name: Pack
run: dotnet pack -c Release -p:PackageOutputPath="$env:GITHUB_WORKSPACE/out/packages" -p:ContinuousIntegrationBuild=true -p:BuildType=canary
run: dotnet pack -c Release -p:ContinuousIntegrationBuild=true -p:BuildType=canary
- name: Upload Code Coverage
uses: codecov/codecov-action@v2
with:
Expand All @@ -30,3 +32,8 @@ jobs:
with:
name: Packages
path: out/packages
- name: Publish CI Package to GitHub Package Registry
if: ${{ github.ref == 'refs/heads/master' }}
run: |
dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name GPR "${{env.GPR_REPOURI}}"
dotnet nuget push "${{env.PackageOutputPath}}/*.nupkg" --source GPR

0 comments on commit 88dc9de

Please sign in to comment.