Update deployment workflow to use 'uv run' #44
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: 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 |