Update api: Return gone for old entities endpoint. Use v2 for new app #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish_admin_docs: | |
name: Deploy admin docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install mkdocs | |
pip install mkdocs-static-i18n[material] | |
pip install mkdocs-awesome-pages-plugin | |
- name: Build MkDocs | |
run: | | |
cd documentation/admin | |
mkdocs build | |
zip -r admin_docs.zip site | |
- name: Create artifcat | |
uses: actions/upload-artifact@v4 | |
with: | |
name: admin_docs | |
path: documentation/admin/admin_docs.zip | |
- name: Deploy to server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.HOST_USERNAME }} | |
key: ${{ secrets.PRIVATE_KEY }} | |
source: "documentation/admin/site" | |
target: "${{ secrets.PROJECT_PATH }}" | |
publish_user_docs: | |
name: Deploy user docs | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install mkdocs | |
pip install mkdocs-static-i18n[material] | |
pip install mkdocs-awesome-pages-plugin | |
- name: Build MkDocs | |
run: | | |
cd documentation/user | |
mkdocs build | |
zip -r user_docs.zip site | |
- name: Create artifcat | |
uses: actions/upload-artifact@v4 | |
with: | |
name: user_docs | |
path: documentation/user/user_docs.zip | |
- name: Deploy to server | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.HOST_USERNAME }} | |
key: ${{ secrets.PRIVATE_KEY }} | |
source: "documentation/user/site" | |
target: "${{ secrets.PROJECT_PATH }}" |