Skip to content

Commit 9054e12

Browse files
committed
testing the mdbook deploy
1 parent 748ae33 commit 9054e12

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/docs.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,20 @@ jobs:
4848
with:
4949
path: 'docs/book'
5050

51-
deploy-page:
51+
deploy-preview:
52+
needs: generate-docs
53+
if: github.event_name == 'pull_request'
54+
environment:
55+
name: pr-preview
56+
url: ${{ steps.deployment.outputs.page_url }}
57+
runs-on: ubuntu-latest
58+
timeout-minutes: 2
59+
steps:
60+
- name: Deploy PR Preview
61+
id: deployment
62+
uses: actions/deploy-pages@v4
63+
64+
deploy-production:
5265
needs: generate-docs
5366
if: github.event_name == 'push'
5467
environment:

0 commit comments

Comments
 (0)