-
Notifications
You must be signed in to change notification settings - Fork 6
54 lines (46 loc) · 1.17 KB
/
pr-docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Document PR
on:
pull_request:
types:
- ready_for_review
- opened
- reopened
- synchronize
paths:
- 'vue-press/**'
- 'packages/**/README.md'
concurrency:
group: pr-docs-${{ github.event.pull_request.id }}
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
pull-requests: write
jobs:
generate-docs:
name: Docs preview
runs-on: ubuntu-latest
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
with:
ref: "${{ github.event.pull_request.merge_commit_sha }}"
fetch-depth: 0
- name: Generate docs
id: build
uses: ./.github/workflows/actions/build-docs
with:
upload-artifact: false
# - uses: actions/deploy-pages@v4
# id: deployment
# with:
# preview: true
# - uses: thollander/actions-comment-pull-request@v2
# if: steps.deployment.outcome == 'success'
# with:
# comment_tag: docs_preview
# message: |
# ${{ steps.deployment.outputs.page_url }}