Skip to content

chore: add action to deploy docs to Netlify #1

chore: add action to deploy docs to Netlify

chore: add action to deploy docs to Netlify #1

Workflow file for this run

name: Build and Deploy
on:
push:
pull_request:
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Install poetry
run: pipx install poetry
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "poetry"
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y ffmpeg imagemagick
- run: poetry install
- name: Build 🔧
run: |
poetry run blurry build
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2.0
with:
publish-dir: "./dist"
production-branch: main
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1