forked from godotengine/godot-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a separate GitHub Actions workflow to build offline documentation (…
…godotengine#4733) This is required to get a permalink using https://nightly.link as we need the workflow containing the offline docs ZIP artifact to always be the latest one. Creating a second workflow is a good way to solve this. This also makes it easier to distinguish between linting checks and offline documentation builds in the repository's Actions tab.
- Loading branch information
Showing
4 changed files
with
45 additions
and
22 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,31 @@ | ||
name: Build documentation for offline usage | ||
on: | ||
schedule: | ||
# Every week on Monday at midnight (UTC). | ||
# This keeps the generated HTML documentation fresh. | ||
- cron: '0 0 * * 1' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo pip3 install -r requirements.txt | ||
sudo pip3 install codespell | ||
# Build the HTML to upload it. | ||
- name: Sphinx build | ||
run: | | ||
sphinx-build --color -d _build/doctrees -W . _build/html | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: godot-docs-html | ||
path: _build/html | ||
# Keep the current build and the previous build (in case a scheduled build failed). | ||
# This makes it more likely to have at least one successful build available at all times. | ||
retention-days: 15 |
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
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