-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (68 loc) · 1.92 KB
/
docs.yml
File metadata and controls
82 lines (68 loc) · 1.92 KB
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Docs
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: 1. Checkout source
uses: actions/checkout@v4
- name: 2. Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.30.2
- name: 3. Setup Node 24
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- name: 4. Install dependencies
run: pnpm install --frozen-lockfile
- name: 5. Build package
id: package
run: pnpm build
- name: 6. Build Docusaurus docs
id: docs
run: pnpm docs:build
- name: 7. Configure GitHub Pages
id: pages
uses: actions/configure-pages@v5
- name: 8. Upload Pages artifact
id: artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs-site/build
- name: 9. Deploy GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- name: Docs summary
if: always()
run: |
{
echo "## Docs pipeline"
echo
echo "| Stage | Result |"
echo "| --- | --- |"
echo "| Build package | ${{ steps.package.outcome }} |"
echo "| Build Docusaurus docs | ${{ steps.docs.outcome }} |"
echo "| Configure Pages | ${{ steps.pages.outcome }} |"
echo "| Upload artifact | ${{ steps.artifact.outcome }} |"
echo "| Deploy Pages | ${{ steps.deployment.outcome }} |"
echo
echo "Docs URL: https://crup.github.io/react-timer-hook/"
} >> "$GITHUB_STEP_SUMMARY"