-
Notifications
You must be signed in to change notification settings - Fork 6
40 lines (37 loc) · 977 Bytes
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: On Push
on:
push:
branches:
- master
- develop
- release/*
paths-ignore:
- 'readme.md'
- 'CHANGELOG.md'
- 'docs/**'
env:
AZURE_ARTIFACTS_FEED_URL: https://pkgs.dev.azure.com/ngdenterprise/Build/_packaging/public/nuget/v3/index.json
DOTNET_VERSION: '7.0.x'
jobs:
test:
uses: ./.github/workflows/test.yml
package:
uses: ./.github/workflows/package.yml
publish:
needs: [test, package]
runs-on: ubuntu-latest
steps:
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
source-url: ${{ env.AZURE_ARTIFACTS_FEED_URL }}
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZURE_ARTIFACTS_PAT }}
- name: Download Packages
uses: actions/download-artifact@v3
with:
name: packages
path: ./out
- name: Publish to Azure Artifacts
run: dotnet nuget push --api-key AzureArtifacts out/*.nupkg