Skip to content

Commit

Permalink
[MCC-771288] Add Workflow for Publishing the Packages (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
lschreck-mdsol authored May 14, 2021
1 parent 2ef5235 commit 8c3c555
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build, Test and Publish
on:
push:
tags:
- 'release/*'
jobs:
Publish:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build the packages
run: dotnet build --configuration Release /p:PackageOutputPath=$GITHUB_WORKSPACE/artifacts
- name: Run the tests
run: dotnet test $GITHUB_WORKSPACE/Medidata.MAuth.sln --framework net5.0 --no-build
- name: Publish the packages
run: dotnet nuget push "$GITHUB_WORKSPACE/artifacts/*.nupkg" --source $ARTIFACTORY_PUSH_TARGET --api-key $API_KEY
env:
API_KEY: ${{ format('{0}:{1}', secrets.ARTIFACTORY_USERNAME, secrets.ARTIFACTORY_PASSWORD) }}
ARTIFACTORY_PUSH_TARGET: https://mdsol.jfrog.io/artifactory/api/nuget/nuget-local/mauth-client-dotnet
3 changes: 2 additions & 1 deletion .github/workflows/build.yaml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ jobs:
uses: actions/checkout@v2
with:
submodules: 'recursive'
- run: dotnet test $GITHUB_WORKSPACE/Medidata.MAuth.sln --framework net5.0
- name: Run the tests
run: dotnet test $GITHUB_WORKSPACE/Medidata.MAuth.sln --framework net5.0
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changes in Medidata.MAuth

## v5.1.2
- **[Core]** Removed unnecessary dependency on `System.Net.Http` package.

## v5.1.1
- **[Core]** Fixed an issue with internal caching for the utility extension `Authenticate()` method.

Expand Down
2 changes: 1 addition & 1 deletion version.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<Version>5.1.1</Version>
<Version>5.1.2</Version>
</PropertyGroup>
</Project>

0 comments on commit 8c3c555

Please sign in to comment.