-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (36 loc) · 1.19 KB
/
docs_publish.yml
File metadata and controls
47 lines (36 loc) · 1.19 KB
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
name: Build and Publish docs
on:
release:
types:
- created
- edited
jobs:
build_and_publish:
environment: NETLIFY
runs-on: ubuntu-latest
steps:
- name: Checkout Main Repository
uses: actions/checkout@v2
with:
repository: 'DbSyncKit/DbSyncKit'
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Setup .NET Core
uses: actions/setup-dotnet@v2
with:
dotnet-version: '8.0.x'
- name: Build and Publish Docs
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_API_KEY: ${{ secrets.NETLIFY_API_KEY }}
run: |
cd DbSyncKit.Docs
echo ${NETLIFY_SITE_ID}
# Install any required dependencies
dotnet restore
# Build documentation
dotnet build -c Release
# Run the Statiq documentation console app with necessary arguments and secrets
dotnet run deploy -s NetlifySiteId="${{ secrets.NETLIFY_SITE_ID }}" -s NetlifyAccessToken="${{ secrets.NETLIFY_API_KEY }}" -s IgnoreInvalidXrefs=true --framework net8.0