|
@@ -1,40 +1,35 @@
|
|
|
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
|
|
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
|
|
|
# More GitHub Actions for Azure: https://github.com/Azure/actions
|
|
# More GitHub Actions for Azure: https://github.com/Azure/actions
|
|
|
|
|
|
|
|
|
|
+# The Fast Track skips creating artifacts and compressing them
|
|
|
name: Build Stride Docs (Fast Track) for Azure Web App Staging
|
|
name: Build Stride Docs (Fast Track) for Azure Web App Staging
|
|
|
|
|
|
|
|
on:
|
|
on:
|
|
|
- # push:
|
|
|
|
|
- # branches:
|
|
|
|
|
- # - staging
|
|
|
|
|
- # paths-ignore:
|
|
|
|
|
- # - 'README.md'
|
|
|
|
|
- # - 'Stride.Docs.sln'
|
|
|
|
|
- # - 'BuildDocs.ps1'
|
|
|
|
|
- # - 'wiki/**'
|
|
|
|
|
- # - .gitignore
|
|
|
|
|
- # - '.github/**'
|
|
|
|
|
workflow_dispatch:
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
jobs:
|
|
|
build-deploy:
|
|
build-deploy:
|
|
|
|
|
+ # Run this job only if the repository is 'stride3d/stride-docs'
|
|
|
if: github.repository == 'stride3d/stride-docs'
|
|
if: github.repository == 'stride3d/stride-docs'
|
|
|
runs-on: windows-2022
|
|
runs-on: windows-2022
|
|
|
environment:
|
|
environment:
|
|
|
name: 'Production'
|
|
name: 'Production'
|
|
|
|
|
|
|
|
steps:
|
|
steps:
|
|
|
|
|
+ # Setup .NET SDK
|
|
|
- name: Dotnet Setup
|
|
- name: Dotnet Setup
|
|
|
uses: actions/setup-dotnet@v3
|
|
uses: actions/setup-dotnet@v3
|
|
|
with:
|
|
with:
|
|
|
dotnet-version: 6.x
|
|
dotnet-version: 6.x
|
|
|
|
|
|
|
|
|
|
+ # Checkout the Stride Docs repository from the branch that triggered the workflow
|
|
|
- name: Checkout Stride Docs
|
|
- name: Checkout Stride Docs
|
|
|
uses: actions/checkout@v3
|
|
uses: actions/checkout@v3
|
|
|
with:
|
|
with:
|
|
|
path: stride-docs
|
|
path: stride-docs
|
|
|
lfs: true
|
|
lfs: true
|
|
|
|
|
|
|
|
|
|
+ # Checkout the Stride repository from the default branch
|
|
|
- name: Checkout Stride (note the LFS)
|
|
- name: Checkout Stride (note the LFS)
|
|
|
uses: actions/checkout@v3
|
|
uses: actions/checkout@v3
|
|
|
with:
|
|
with:
|
|
@@ -44,10 +39,10 @@ jobs:
|
|
|
lfs: true
|
|
lfs: true
|
|
|
|
|
|
|
|
- name: Install DocFX
|
|
- name: Install DocFX
|
|
|
- # This installs the latest version of DocFX and may introduce breaking changes.
|
|
|
|
|
|
|
+ # This installs the latest version of DocFX and may introduce breaking changes
|
|
|
# run: dotnet tool update -g docfx
|
|
# run: dotnet tool update -g docfx
|
|
|
# This installs a specific, tested version of DocFX.
|
|
# This installs a specific, tested version of DocFX.
|
|
|
- run: dotnet tool update -g docfx --version 2.70.3
|
|
|
|
|
|
|
+ run: dotnet tool update -g docfx --version 2.70.4
|
|
|
|
|
|
|
|
- name: Build documentation
|
|
- name: Build documentation
|
|
|
run: ./build-all.bat
|
|
run: ./build-all.bat
|
|
@@ -60,4 +55,4 @@ jobs:
|
|
|
app-name: 'stride-doc'
|
|
app-name: 'stride-doc'
|
|
|
slot-name: 'staging'
|
|
slot-name: 'staging'
|
|
|
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_32FCD402B970463A9143B24C9B225749 }}
|
|
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_32FCD402B970463A9143B24C9B225749 }}
|
|
|
- package: ./stride-docs/_site
|
|
|
|
|
|
|
+ package: ./stride-docs/_site
|