Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lighkLife authored Nov 11, 2023
1 parent 2d66606 commit 94d6396
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows /deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy

on:
push:
branches: [main, dev]

jobs:
deploy-doc:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: "true"
- uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Install dependencies
run: pip install -r requirements.txt

- name: build doc
run: |
make html
cp scripts/mermaid.js build/html/_static/
- name: create .nojekyll
run: touch build/html/.nojekyll

- name: Push to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/html

0 comments on commit 94d6396

Please sign in to comment.