Skip to content

Commit

Permalink
update gh workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nlsdvl committed Mar 4, 2024
1 parent 51297d3 commit f5befe5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/.mkdocs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,18 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: clone_and_patch_wiki
run: ./scripts/clone_and_patch_wiki.sh
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: install mkdocs-material
env:
GOOGLE_ANALYTICS_KEY: ${{secrets.GOOGLE_ANALYTICS_KEY}}
run: pip install mkdocs-material
# run: pip install mkdocs-material=="9.5.6"
- name: build mkdocs
run: mkdocs build --clean -d dist/site
- name: disable SEO indexing
run: |
echo "
User-agent: *
Disallow: /
" > dist/site/robots.txt
- name: create archive
run: cd dist/site && tar -cvzf ../site.$(git rev-parse --short HEAD).tar.gz .
- name: install lftp
- name: install ftp
run: sudo apt install lftp
- name: lftp upload
run: lftp -c "open -u ${{secrets.WIKI_FTP_USER}},${{secrets.WIKI_FTP_PASS}} ${{vars.WIKI_FTP_HOST}}; put -O dist/ dist/site.$(git rev-parse --short HEAD).tar.gz"
- name: ftp upload
run: lftp -c "open -u ${{secrets.WIKI_FTP_USER}},${{secrets.WIKI_FTP_PASS}} ${{vars.WIKI_FTP_HOST}}; put site.$(git rev-parse --short HEAD).tar.gz"
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.ignore/
site/
.venv/
__pycache__/
__pycache__/
site.*
.DS_Store
2 changes: 0 additions & 2 deletions docs/.gitignore

This file was deleted.

0 comments on commit f5befe5

Please sign in to comment.