Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 18 additions & 4 deletions .github/workflows/pr-preview.yml → .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,45 @@
name: Deploy PR Preview
name: Deploy to GitHub Pages

on:
# Deploy main branch to production
push:
branches: ["main"]

# Deploy PR previews
pull_request:
branches: ["main"]
types: [opened, synchronize, reopened, closed]

# Allow manual deployment
workflow_dispatch:

permissions:
contents: write
pull-requests: write

concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: false

jobs:
deploy-preview:
deploy:
# Skip on PR close events (handled by cleanup job)
if: github.event.action != 'closed'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Deploy PR Preview
- name: Deploy to GitHub Pages
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs
preview-branch: gh-pages
umbrella-dir: pr-previews
action: auto

cleanup-preview:
cleanup:
# Only run when PR is closed
if: github.event.action == 'closed'
runs-on: ubuntu-latest
steps:
Expand Down
43 changes: 0 additions & 43 deletions .github/workflows/static.yml

This file was deleted.

Loading