-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 939 Bytes
/
deploy_docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy Docs
on:
push:
branches:
- main
- docs
workflow_dispatch:
jobs:
run-ansible:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-tags: true
fetch-depth: 0 # fetch tags doesn't work without this (https://github.com/actions/checkout/issues/1748)
clean: false
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install dependencies
run: uv sync --group docs
- name: Build docs
run: uv run mkdocs build
- name: Run playbook
uses: dawidd6/action-ansible-playbook@v2
with:
playbook: docs/deploy/run_deploy.yaml
key: ${{ secrets.DEPLOY_KEY }}
inventory: |
[vadim_one]
vadim.one ansible_port=4242 ansible_user=service
requirements: docs/deploy/galaxy-requirements.yml