Skip to content

Commit

Permalink
deploy.yml workflow added
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardo-alle committed Feb 19, 2024
1 parent 0541f6f commit 5090035
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy docs

on:
workflow_dispatch:
push:
branches: main
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'Pipfile'

jobs:
build:
runs-on: [self-hosted, linux]
steps:

- uses: actions/checkout@v4

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- run: python -m pip install build

- name: Install poetry
run: make install-poetry

- name: Install dependencies
run: make install-env

- name: Build and Deploy docs
run: make deploy-docs
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ linter::
poetry run pylint llm_wrapper --reports=no --output-format=colorized --fail-under=8.0

tests::
poetry run python -m pytest -s --verbose
poetry run python -m pytest -s --verbose


deploy-docs::
poetry run mkdocs gh-deploy --force

0 comments on commit 5090035

Please sign in to comment.