Skip to content

Commit

Permalink
Merge pull request #19 from leancodepl/publisher/add-test-client-to-cd
Browse files Browse the repository at this point in the history
Add test client releases to CD
  • Loading branch information
Dragemil authored Sep 12, 2023
2 parents 8813c08 + c9a1551 commit 259ab56
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/publisher_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,24 @@ jobs:
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: dotnet test --no-restore -c Release
- name: Pack
- name: Pack Publisher
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: dotnet pack --no-build -c Release
working-directory: ./publisher/src/LeanPipe
- name: Pack Test Client
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
run: dotnet pack --no-build -c Release
working-directory: ./publisher/src/LeanPipe.TestClient
- name: Publish to Feedz
run: |
dotnet nuget push "bin/Release/LeanPipe.${BUILD_VERSION}.nupkg" -k "$FEEDZ_API_KEY" -s 'https://f.feedz.io/leancode/public/nuget/index.json' -n
working-directory: ./publisher/src/LeanPipe
dotnet nuget push \
"src/LeanPipe/bin/Release/LeanPipe.${BUILD_VERSION}.nupkg" \
"src/LeanPipe.TestClient/bin/Release/LeanPipe.TestClient.${BUILD_VERSION}.nupkg" \
-k "$FEEDZ_API_KEY" \
-s 'https://f.feedz.io/leancode/public/nuget/index.json' \
-n
env:
BUILD_VERSION: ${{ steps.version.outputs.version }}
FEEDZ_API_KEY: ${{ secrets.FEEDZ_API_KEY }}
2 changes: 1 addition & 1 deletion publisher/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Authors>LeanCode</Authors>
<Company>LeanCode</Company>
<Copyright>Copyright 2023 LeanCode Sp. z o.o.</Copyright>
<PackageProjectUrl>https://github.com/leancodepl/leanpipe/publisher</PackageProjectUrl>
<PackageProjectUrl>https://github.com/leancodepl/leanpipe</PackageProjectUrl>
<RepositoryUrl>https://github.com/leancodepl/leanpipe</RepositoryUrl>
<RepositoryCommit Condition="'$(GITHUB_SHA)' != ''">$(GITHUB_SHA)</RepositoryCommit>

Expand Down

0 comments on commit 259ab56

Please sign in to comment.