-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.1 KB
/
Copy pathdeploy.yml
File metadata and controls
53 lines (44 loc) · 1.1 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
name: Deploy Vite React App to GitHub Pages
on:
push:
branches:
- master # Change to 'main' if your default branch is 'main'
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Build and Deploy
run: npm run deploy
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
exclude_assets: |
.git
.github
node_modules
src
public
build
.gitignore
package.json
package-lock.json
tsconfig.json
tsconfig.node.json
vite.config.ts
vite-plugin-save-content.ts
README.md