You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Based on : https://github.com/brillout/vite-plugin-ssr/blob/main/.github/workflows/docs.yml
1
2
name: Build and deploy
2
3
3
4
on:
4
5
push:
5
-
branches: [ "main" ]
6
+
branches:
7
+
- main
6
8
7
-
permissions:
8
-
contents: write
9
9
jobs:
10
10
build-and-deploy:
11
11
runs-on: ubuntu-latest
12
12
steps:
13
13
- name: Checkout 🛎️
14
14
uses: actions/checkout@v3
15
15
16
-
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
17
-
run: |
18
-
npm i
19
-
npm run build:ci
16
+
- name: Install pnpm
17
+
uses: pnpm/action-setup@v2
18
+
19
+
- name: Install
20
+
run: pnpm install
21
+
22
+
- name: Build
23
+
run: pnpm build:ci
20
24
21
25
- name: Deploy 🚀
22
26
uses: JamesIves/github-pages-deploy-action@v4
23
27
with:
28
+
branch: gh-pages
24
29
folder: dist/client
30
+
# Remove previous build files
31
+
clean: true
32
+
# Do not remove the `.nojekyll` file: we have manually added an empty `.nojekyll` file at the root of the `gh-pages` branch and we don't want having to re-create it after each build.
0 commit comments