mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 09:22:49 -05:00
chore: fix documentation issue
This commit is contained in:
1 file changed
+3
-19
@@ -10,7 +10,7 @@ on:
|
||||
- "mkdocs.yml"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
@@ -26,21 +26,5 @@ jobs:
|
||||
- name: Install MkDocs
|
||||
run: pip install -r docs/requirements.txt
|
||||
|
||||
- name: Build docs
|
||||
run: mkdocs build --site-dir site
|
||||
|
||||
- name: Deploy to hectorvent.github.io/static/floci
|
||||
env:
|
||||
PAGES_TOKEN: ${{ secrets.PAGES_TOKEN }}
|
||||
run: |
|
||||
git clone --depth=1 https://x-access-token:${PAGES_TOKEN}@github.com/hectorvent/hectorvent.github.io.git pages-repo
|
||||
|
||||
rm -rf pages-repo/static/floci
|
||||
cp -r site pages-repo/static/floci
|
||||
|
||||
cd pages-repo
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add static/floci/
|
||||
git diff --cached --quiet || git commit -m "docs: update floci docs"
|
||||
git push
|
||||
- name: Deploy to GitHub Pages
|
||||
run: mkdocs gh-deploy --force
|
||||
Reference in new issue
Block a user