Skip to content

Commit 798e045

Browse files
committed
deploy to public GH pages
1 parent ff01e5d commit 798e045

File tree

3 files changed

+44
-45
lines changed

3 files changed

+44
-45
lines changed

.github/workflows/deploy.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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/

.github/workflows/playwright.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

pnpm-lock.yaml

Lines changed: 0 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)