mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 09:11:34 +00:00
36 lines
829 B
YAML
36 lines
829 B
YAML
name: Build docs
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev-3.x
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Set up Python 3.7
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install poetry
|
|
poetry install
|
|
- name: Run tests
|
|
run: |
|
|
poetry pytest tests
|
|
- name: Build docs
|
|
run: |
|
|
poetry run mkdocs build
|
|
- name: FTP-Deploy-2038
|
|
uses: SamKirkland/FTP-Deploy-Action@2.0.0
|
|
env:
|
|
FTP_SERVER: 2038.host
|
|
FTP_USERNAME: ${{ secrets.DOCS_FTP_USERNAME }}
|
|
FTP_PASSWORD: ${{ secrets.DOCS_FTP_PASSWORD }}
|
|
LOCAL_DIR: site
|
|
REMOTE_DIR: public
|
|
ARGS: --delete
|