Merge pull request #104 from mdsol/authenticator #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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_ACCOUNT_NAME, secrets.ARTIFACTORY_PROD_ACCESS_TOKEN) }} | |
ARTIFACTORY_PUSH_TARGET: https://mdsol.jfrog.io/artifactory/api/nuget/PlatformLibraries-nuget-prod-local/mauth-client-dotnet |