Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
heaths committed Aug 10, 2020
1 parent 4750423 commit 433ab76
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,32 @@ jobs:

steps:
- uses: actions/checkout@v2

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '2.1.20'

- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.x'

- name: install additional dependencies
run: sudo apt-get install -y dotnet-runtime-2.1
- name: Copy .NET Core SxS
shell: pwsh
run: |
# Work around https://github.com/actions/setup-dotnet/issues/25
$DOTNET_21_ROOT = $env:DOTNET_ROOT -replace '3\.1\.\d+', '2.1.20'
get-childitem "$DOTNET_21_ROOT/shared" | copy-item -recurse -destination "${env:DOTNET_ROOT}/shared"
- name: build
- name: Build
run: >
dotnet build KeyVaultProxy.sln
-c Release -o bin/Release
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_NOLOGO: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1

- id: test
- id: Test
name: test
run: >
dotnet test KeyVaultProxy.sln
Expand Down Expand Up @@ -71,7 +84,7 @@ jobs:
env:
NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: pack
- name: Pack
run: >
dotnet pack KeyVaultProxy.sln
-c Release -o bin/Release
Expand All @@ -86,6 +99,6 @@ jobs:
name: artifacts
path: bin/Release/*.nupkg

- name: publish
- name: Publish
run: dotnet nuget push bin/Release/*.nupkg
if: github.ref == 'refs/heads/master' && github.event_name == 'push'

0 comments on commit 433ab76

Please sign in to comment.