-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (36 loc) · 996 Bytes
/
cd.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: CD
on:
repository_dispatch:
types: [cd]
defaults:
run:
shell: pwsh
env:
dotnet-version: "5.0.x"
node-version: "12.x"
build_version: "0.0.3.${{ github.run_number }}"
jobs:
pub-pkgs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.dotnet-version }}
- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: ${{ env.node-version }}
- name: Setup psake
run: Set-PSRepository -Name PSGallery -InstallationPolicy Trusted; Install-Module -Name psake
- name: CD
env:
NUGET_AUTH_TOKEN: ${{ secrets.AZ_TOKEN }}
run: Invoke-psake cd -parameters @{ "NUGET_AUTH_TOKEN" = $env:NUGET_AUTH_TOKEN ; "build_version" = $env:build_version }
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: packages
path: ./packages