forked from Mapsui/Mapsui
-
Notifications
You must be signed in to change notification settings - Fork 10
61 lines (56 loc) · 1.65 KB
/
dotnet-docs.yml
File metadata and controls
61 lines (56 loc) · 1.65 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build Website
on:
push:
branches:
- main
- feature/docs
permissions:
contents: write
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
jobs:
build-and-publish-website:
runs-on: windows-latest
steps:
#Begin install mkdocs
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: |
pip install mkdocs-material
pip install mkdocs-glightbox
#End install mkdocs
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
filter: tree:0
- name: Setup .NET 9 SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.200
- name: install workloads
run: dotnet workload install maui macos android ios maccatalyst wasm-tools wasm-tools-net8
- name: Run DocFx
shell: pwsh
run: ./Scripts/BuildDocumentationWebSite.ps1
# build blazor samples to website/samples/
- name: Build Blazor Website Sample
shell: pwsh
run: ./Scripts/BuildSamplesWebsite.ps1
- name: Upload artifact
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website
destination_dir: v5
keep_files: true