mirror of
https://github.com/Dokploy/templates
synced 2025-06-26 18:16:07 +00:00
feat: Add index.html to PR preview deployment
This commit is contained in:
12
.github/workflows/deploy.yml
vendored
12
.github/workflows/deploy.yml
vendored
@@ -18,11 +18,13 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# Si no tienes build, solo copia los archivos
|
# Si no tienes build, solo copia los archivos
|
||||||
- name: Prepare static preview folder
|
- name: Prepare static preview folder
|
||||||
run: |
|
run: |
|
||||||
mkdir -p preview
|
mkdir -p preview
|
||||||
cp meta.json preview/
|
cp meta.json preview/
|
||||||
cp -r blueprints preview/
|
cp -r blueprints preview/
|
||||||
|
echo "<h1>Preview for PR #${{ github.event.pull_request.number }}</h1>" > preview/index.html
|
||||||
|
|
||||||
|
|
||||||
# Despliega el preview usando el action
|
# Despliega el preview usando el action
|
||||||
- uses: rossjrw/pr-preview-action@v1
|
- uses: rossjrw/pr-preview-action@v1
|
||||||
|
|||||||
Reference in New Issue
Block a user