Skip to content

Commit 9853483

Browse files
committed
Merge branch '3.1' into 2.x
2 parents fdd881c + f59c230 commit 9853483

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.azure/docfx.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Starter pipeline
2+
# Start with a minimal pipeline that you can customize to build and deploy your code.
3+
# Add steps that build, run tests, deploy, and more:
4+
# https://aka.ms/yaml
5+
6+
trigger:
7+
- main
8+
9+
pool:
10+
vmImage: ubuntu-latest
11+
12+
steps:
13+
# Step 1: Install DocFX
14+
- task: UseDotNet@2
15+
inputs:
16+
packageType: 'sdk'
17+
version: '8.x' # Ensure you have .NET SDK installed
18+
installationPath: $(Agent.ToolsDirectory)/dotnet
19+
20+
- script: |
21+
dotnet tool install -g docfx
22+
displayName: 'Install DocFX'
23+
24+
# Step 2: Build the Documentation using DocFX
25+
- script: |
26+
docfx docfx.json
27+
displayName: 'Build Documentation'
28+
29+
# Step 3: Deploy to GitHub Pages
30+
- task: Bash@3
31+
displayName: 'Deploy to GitHub Pages'
32+
inputs:
33+
targetType: 'inline'
34+
script: |
35+
git config --global user.email "your-email@example.com"
36+
git config --global user.name "Your Name"
37+
git clone --branch gh-pages https://$GITHUB_PAT@github.com/$GITHUB_REPO.git out
38+
rm -rf out/*
39+
cp -r _site/* out/
40+
cd out
41+
git add --all
42+
git commit -m "Update documentation"
43+
git push origin gh-pages
44+
env:
45+
GITHUB_PAT: $(GITHUB_PAT) # The GitHub Personal Access Token
46+
GITHUB_REPO: fenase/BigExcelCreator # Update with your repo details

0 commit comments

Comments
 (0)