File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments