File tree Expand file tree Collapse file tree 3 files changed +44
-45
lines changed
Expand file tree Collapse file tree 3 files changed +44
-45
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build-and-deploy :
10+ runs-on : ubuntu-22.04
11+ strategy :
12+ matrix :
13+ node-version : [20]
14+ steps :
15+ # Step 1: Checkout the repository
16+ - uses : actions/checkout@v4
17+
18+ # Step 2: Install pnpm
19+ - name : Install pnpm
20+ uses : pnpm/action-setup@v4
21+ with :
22+ version : 9
23+
24+ # Step 3: Set up Node.js with pnpm caching
25+ - name : Use Node.js ${{ matrix.node-version }}
26+ uses : actions/setup-node@v4
27+ with :
28+ node-version : ${{ matrix.node-version }}
29+ cache : ' pnpm'
30+
31+ # Step 4: Install dependencies
32+ - name : Install dependencies
33+ run : pnpm install
34+
35+ # Step 5: Build the project
36+ - name : Build the project
37+ run : pnpm run build
38+
39+ # Step 6: Deploy to GitHub Pages
40+ - name : Deploy to GitHub Pages
41+ uses : peaceiris/actions-gh-pages@v3
42+ with :
43+ github_token : ${{ secrets.GITHUB_TOKEN }}
44+ publish_dir : packages/idb-cache-app/dist/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments