Files
documentation/.github/workflows/release.yaml
Igor eab040cbed Add various GH actions and enable upload to new WEB server (#666)
* `Automatic` documentation update
* `Automatic` documentation update
* Enable upload to new server
* Pull useful actions from build repository
* Update .github/workflows/clean-workflow-logs.yml
* Update clean-workflow-logs.yml
* Fix docs preview
* Refactor docs at pr
2025-04-09 18:14:20 +02:00

48 lines
1.1 KiB
YAML

name: Update documentation website
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build-docs:
name: "Generate HTML"
if: ${{ github.repository_owner == 'Armbian' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
fetch-depth: 1
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: "Install dependencies"
run: |
pip install --upgrade pip
pip install setuptools wheel -r requirements.txt
- name: "Build documentation"
run: mkdocs build --clean
- name: "Install SSH key"
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.KEY_UPLOAD }}
known_hosts: ${{ secrets.HOST_APPLICATIONS_KNOWN_HOSTS }}
if_key_exists: replace
- name: "Deploy to servers"
timeout-minutes: 3
run: |
rsync -e "ssh -p ${{ secrets.HOST_APPLICATIONS_PORT }}" \
-a site/ \
${{ secrets.HOST_APPLICATIONS_USER }}@${{ secrets.HOST_APPLICATIONS }}:storage/docs.armbian.com