forked from DaoCloud/DaoCloud-docs
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #89 from sophongo/main-build
auto build and deploy gh page
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 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,30 @@ | ||
# This is a basic workflow to help you get started with Actions | ||
name: deploy-for-main | ||
|
||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Clone the repository | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.x | ||
cache: 'pip' | ||
|
||
# Install dependencies | ||
- run: pip install -r requirements.txt --no-cache-dir | ||
|
||
# Build docs | ||
- run: pwd | ||
- run: mkdocs gh-deploy -c --force |
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,7 @@ | ||
mkdocs-material | ||
mkdocs-minify-plugin | ||
pymdown-extensions | ||
mkdocs-swagger-ui-tag | ||
mkdocs-static-i18n | ||
mkdocs-git-revision-date-localized-plugin | ||
mkdocs-git-committers-plugin-2 |