Skip to content

Commit 9c98ea2

Browse files
committed
try to deploy to pages
1 parent 9c3a607 commit 9c98ea2

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/branch-preview.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
- reopened
99

1010
jobs:
11-
build-and-deploy:
11+
build:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Checkout phd
@@ -46,4 +46,23 @@ jobs:
4646
- name: Render xhtml
4747
run: |
4848
php phd/render.php --docbook doc-base/.manual.xml --package PHP --format xhtml
49-
cat output/php-chunked-xhtml/index.html
49+
50+
- name: Upload static files as artifact
51+
id: deployment
52+
uses: actions/upload-pages-artifact@v3
53+
with:
54+
path: output/php-chunked-xhtml/
55+
56+
deploy:
57+
permissions:
58+
pages: write
59+
id-token: write
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
63+
runs-on: ubuntu-latest
64+
needs: build
65+
steps:
66+
- name: Deploy to GitHub Pages
67+
id: deployment
68+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)