-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.11 KB
/
release.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
41
42
43
44
45
46
47
48
49
50
51
name: Release
on:
release:
types: [published]
defaults:
run:
shell: pwsh
jobs:
deploy:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- name: Install docfx
run: choco install docfx -y
- name: Build and Deploy packages
env:
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
run: ./build.ps1 -t Deploy
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: ./dist
docs:
needs: deploy
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false
- name: Download artifacts
uses: actions/download-artifact@v2
with:
name: artifacts
path: ./dist
- name: Deploy documents
uses: JamesIves/[email protected]
with:
token: ${{ secrets.PA_TOKEN }}
branch: gh-pages
folder: ./dist/docs/_site