Skip to content

Commit

Permalink
chore: add action to deploy docs to Netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
johnfraney committed Feb 29, 2024
1 parent e531346 commit 8a8db63
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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
- name: Build 🔧
run: |
cd docs
poetry install --no-root
poetry run blurry build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: "./docs/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

0 comments on commit 8a8db63

Please sign in to comment.