Skip to content

Commit

Permalink
docs: deploy via action
Browse files Browse the repository at this point in the history
  • Loading branch information
ringsaturn committed Oct 26, 2024
1 parent 63c6a45 commit 7a158bc
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Deploy documentation
on:
push:
branches: [main]

defaults:
run:
working-directory: docs

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: "https://caiyunapp.github.io/cyeva"
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true

- run: make html

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./build/html"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 7a158bc

Please sign in to comment.