-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (33 loc) · 881 Bytes
/
Copy pathdocs.yml
File metadata and controls
40 lines (33 loc) · 881 Bytes
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: Deploy Docs
on:
push:
branches:
- main
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
cache: true
cache-dependency-path: '**/packages.lock.json'
- name: Restore tools
run: dotnet tool restore
- name: Publish
working-directory: docs/Linq2GraphQL.Docs
run: dotnet publish -c:Release -o:publish
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/Linq2GraphQL.Docs/publish/wwwroot
force_orphan: true