Skip to content

Merge pull request #12 from lovablelabs/vibor-docs #65

Merge pull request #12 from lovablelabs/vibor-docs

Merge pull request #12 from lovablelabs/vibor-docs #65

Workflow file for this run

name: Docs
on:
push:
branches: [main]
paths:
- '**'
- '.github/workflows/docs.yml'
pull_request:
branches: ["*"]
paths:
- '**'
- '.github/workflows/docs.yml'
workflow_dispatch: # Add this line to enable manual triggering
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "poetry"
cache-dependency-path: poetry.lock
- name: Install deps
run: make install
- name: Build
run: make build
# We deploy from GitHub Actions instead of via Netlify builders,
# because Netlify builders don't support Python 3.8+
- name: Deploy to Netlify
if: github.ref == 'refs/heads/main'
uses: jsmrcaga/action-netlify-deploy@v2.1.0
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ddab54c7-7320-45c9-9103-8509b232bfae
NETLIFY_DEPLOY_MESSAGE: "Deployed from GitHub Action: ${{ github.event.head_commit.message }}"
NETLIFY_DEPLOY_TO_PROD: true
build_directory: site
install_command: "echo Skipping installing the dependencies"
build_command: "echo Skipping building the web files"