Skip to content

Commit

Permalink
build: add preview action
Browse files Browse the repository at this point in the history
For more context go to action documentation https://github.com/marketplace/actions/deploy-pr-preview
  • Loading branch information
naanadr committed Apr 17, 2024
1 parent 49cdfae commit 58d2ecc
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy PR previews

on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed

concurrency:
group: preview-${{ github.ref }}
cancel-in-progress: true

jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5

- name: Install dependencies and build
if: github.event.action != 'closed'
run: |
python -m pip install poetry
poetry install --no-dev
poetry run make html
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/html/

0 comments on commit 58d2ecc

Please sign in to comment.