Skip to content

Commit

Permalink
Merge pull request #89 from sophongo/main-build
Browse files Browse the repository at this point in the history
auto build and deploy gh page
  • Loading branch information
samzong authored Nov 19, 2024
2 parents a710b7d + a7cf182 commit b1aae2c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/deploy-pages.yaml
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
7 changes: 7 additions & 0 deletions requirements.txt
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

0 comments on commit b1aae2c

Please sign in to comment.