mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
35 lines
654 B
YAML
35 lines
654 B
YAML
name: Deploy PR previews
|
|
|
|
on:
|
|
pull_request:
|
|
types:
|
|
- opened
|
|
- reopened
|
|
- synchronize
|
|
- closed
|
|
branches:
|
|
- main
|
|
|
|
|
|
# concurrency: preview-${{ github.ref }}
|
|
|
|
jobs:
|
|
deploy-preview:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
# Si no tienes build, solo copia los archivos
|
|
- name: Prepare static preview folder
|
|
run: |
|
|
mkdir -p preview
|
|
cp meta.json preview/
|
|
cp -r blueprints preview/
|
|
cp index.html preview/
|
|
|
|
# Despliega el preview usando el action
|
|
- uses: rossjrw/pr-preview-action@v1
|
|
with:
|
|
source-dir: preview
|