Skip to content

Commit 9bef896

Browse files
committed
chore: update gh action
1 parent 1f40a76 commit 9bef896

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed
Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,34 @@
1+
# Based on : https://github.com/brillout/vite-plugin-ssr/blob/main/.github/workflows/docs.yml
12
name: Build and deploy
23

34
on:
45
push:
5-
branches: [ "main" ]
6+
branches:
7+
- main
68

7-
permissions:
8-
contents: write
99
jobs:
1010
build-and-deploy:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout 🛎️
1414
uses: actions/checkout@v3
1515

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
2024

2125
- name: Deploy 🚀
2226
uses: JamesIves/github-pages-deploy-action@v4
2327
with:
28+
branch: gh-pages
2429
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.
33+
clean-exclude: |
34+
.nojekyll

0 commit comments

Comments
 (0)