-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #287 from stride3d/master
Initiating deployment of latest docs updates to production
- Loading branch information
Showing
101 changed files
with
1,401 additions
and
1,331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
authors: | ||
- dependabot | ||
categories: | ||
- title: 💥 Breaking Changes | ||
labels: | ||
- 'breaking-change' | ||
- title: 🎉 New Features | ||
labels: | ||
- 'new-feature' | ||
- title: 🐞 Bug Fixes | ||
labels: | ||
- 'bug-fix' | ||
- title: 🏋🏽 Community Resources | ||
labels: | ||
- 'community-resources' | ||
- title: 🌟 Contributing | ||
labels: | ||
- 'contributing' | ||
- title: 🔧 API | ||
labels: | ||
- API | ||
- title: 📝 Release Notes | ||
labels: | ||
- 'release-notes' | ||
- title: 📚 Manual | ||
labels: | ||
- manual | ||
- title: 🎓 Tutorials | ||
labels: | ||
- 'tutorial' | ||
- title: 🔁 Build & Deploy | ||
labels: | ||
- 'ci-cd' | ||
- title: 💪 Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Common Setup for Stride Documentation | ||
|
||
# This is not used currently. The job runs in a separate instants so can't be used | ||
on: | ||
workflow_call: | ||
outputs: | ||
stride_docs_path: | ||
description: "The checkout path of the Stride Docs repository" | ||
value: ${{ jobs.setup.outputs.stride_docs_path }} | ||
stride_path: | ||
description: "The checkout path of the Stride repository" | ||
value: ${{ jobs.setup.outputs.stride_path }} | ||
|
||
jobs: | ||
setup: | ||
runs-on: windows-2022 | ||
|
||
outputs: | ||
stride-docs-path: 'stride-docs' | ||
stride-path: 'stride' | ||
|
||
steps: | ||
# Setup .NET SDK | ||
- name: Dotnet Setup | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
# Checkout the Stride Docs repository from the branch that triggered the workflow | ||
- name: Checkout Stride Docs | ||
uses: actions/checkout@v4 | ||
with: | ||
path: stride-docs | ||
lfs: true | ||
|
||
# Checkout the Stride repository from the default branch | ||
- name: Checkout Stride (note the LFS) | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: stride3d/stride | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: stride | ||
lfs: true | ||
|
||
- name: Install DocFX | ||
# This installs the latest version of DocFX and may introduce breaking changes | ||
# run: dotnet tool update -g docfx | ||
# This installs a specific, tested version of DocFX. | ||
run: dotnet tool update -g docfx --version 2.76.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,11 @@ | |
|
||
name: Build Stride Docs for GitHub Staging | ||
|
||
env: | ||
COMMON_SETTINGS_PATH: en/docfx.json | ||
VERSION: "2.0.0.${{ github.run_number }}" | ||
DOCS_PATH: stride-docs | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
|
@@ -10,35 +15,47 @@ jobs: | |
runs-on: windows-2022 | ||
|
||
steps: | ||
- name: Dotnet Setup | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
- name: Checkout Stride Docs | ||
uses: actions/checkout@v3 | ||
with: | ||
path: stride-docs | ||
lfs: true | ||
|
||
- name: Checkout Stride (note the LFS) | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: stride3d/stride | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: stride | ||
lfs: true | ||
|
||
- name: Install DocFX | ||
run: dotnet tool update -g docfx --version 2.74.0 | ||
|
||
- name: Build documentation | ||
run: ./build-all.bat | ||
working-directory: stride-docs | ||
|
||
- name: Deploy | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: stride-docs/_site | ||
publish_branch: gh-pages | ||
- name: .NET SDK Setup | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.x | ||
|
||
# Checkout the Stride Docs repository from the branch that triggered the workflow | ||
- name: Checkout Stride Docs | ||
uses: actions/checkout@v4 | ||
with: | ||
path: ${{ env.DOCS_PATH }} | ||
lfs: true | ||
|
||
- name: Set Version in docfx.json | ||
run: | | ||
$settingsContent = Get-Content -Path "${{ env.DOCS_PATH }}/${{ env.COMMON_SETTINGS_PATH }}" -Raw | ||
$updatedDocFxJsonContent = $settingsContent -replace '2.0.0.x', "${{ env.VERSION }}" | ||
Set-Content -Path "${{ env.DOCS_PATH }}/${{ env.COMMON_SETTINGS_PATH }}" -Value $updatedDocFxJsonContent | ||
shell: pwsh | ||
|
||
# Checkout the Stride repository from the default branch | ||
- name: Checkout Stride (note the LFS) | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: stride3d/stride | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: stride | ||
lfs: true | ||
|
||
- name: Install DocFX | ||
# This installs the latest version of DocFX and may introduce breaking changes | ||
# run: dotnet tool update -g docfx | ||
# This installs a specific, tested version of DocFX. | ||
run: dotnet tool update -g docfx --version 2.76.0 | ||
|
||
- name: Build documentation | ||
run: ./build-all.bat | ||
working-directory: ${{ env.DOCS_PATH }} | ||
|
||
- name: Deploy | ||
uses: peaceiris/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ${{ env.DOCS_PATH }}/_site | ||
publish_branch: gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.