Skip to content

Commit 8c03060

Browse files
docs(static-deploy): update workflow (#15773)
1 parent 8403546 commit 8c03060

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/guide/static-deploy.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -98,24 +98,24 @@ Now the `preview` command will launch the server at `http://localhost:8080`.
9898
- name: Checkout
9999
uses: actions/checkout@v4
100100
- name: Set up Node
101-
uses: actions/setup-node@v3
101+
uses: actions/setup-node@v4
102102
with:
103-
node-version: 18
103+
node-version: 20
104104
cache: 'npm'
105105
- name: Install dependencies
106-
run: npm install
106+
run: npm ci
107107
- name: Build
108108
run: npm run build
109109
- name: Setup Pages
110-
uses: actions/configure-pages@v3
110+
uses: actions/configure-pages@v4
111111
- name: Upload artifact
112-
uses: actions/upload-pages-artifact@v2
112+
uses: actions/upload-pages-artifact@v3
113113
with:
114-
# Upload dist repository
114+
# Upload dist folder
115115
path: './dist'
116116
- name: Deploy to GitHub Pages
117117
id: deployment
118-
uses: actions/deploy-pages@v2
118+
uses: actions/deploy-pages@v4
119119
```
120120
121121
## GitLab Pages and GitLab CI

0 commit comments

Comments
 (0)