From 8c3c5554d26108350970a62fd341f27fe4411bb7 Mon Sep 17 00:00:00 2001 From: Laszlo Schreck Date: Fri, 14 May 2021 16:56:19 +0900 Subject: [PATCH] [MCC-771288] Add Workflow for Publishing the Packages (#78) --- .github/workflows/publish.yaml | 22 +++++++++++++++++++++ .github/workflows/{build.yaml => test.yaml} | 3 ++- CHANGELOG.md | 3 +++ version.props | 2 +- 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yaml rename .github/workflows/{build.yaml => test.yaml} (70%) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..659bc93 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -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 diff --git a/.github/workflows/build.yaml b/.github/workflows/test.yaml similarity index 70% rename from .github/workflows/build.yaml rename to .github/workflows/test.yaml index 30d640a..bf21282 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fa7660..2e29f64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/version.props b/version.props index 775f264..9d1f5d2 100644 --- a/version.props +++ b/version.props @@ -1,6 +1,6 @@  - 5.1.1 + 5.1.2