Skip to content
Closed
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
39 changes: 39 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Preview Deployment

on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]

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

permissions: {}

jobs:
preview:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v5

- name: Cache Astro Output
uses: actions/cache@v4
with:
path: content/node_modules/.astro
key: astro-cache-${{ hashFiles('content/src/content/**') }}
restore-keys: |
astro-cache-

- name: Install dependences
uses: ./.github/actions/setup
with:
working-directory: ./content

- name: Build
shell: bash
working-directory: ./content
run: pnpm build