-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (39 loc) Β· 900 Bytes
/
main.yml
File metadata and controls
48 lines (39 loc) Β· 900 Bytes
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
name: Build and Deploy π
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
BASE: /${{ github.event.repository.name }}/
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v6.0.2
- name: Pnpm π§±
uses: pnpm/action-setup@v4.4.0
- name: Node.js β
uses: actions/setup-node@v6.3.0
with:
node-version: latest
cache: pnpm
- name: Install π§
run: |
pnpm i
pnpm playwright
- name: Test π§ͺ
run: |
pnpm test
- name: Build π§
run: |
pnpm build
touch dist/.nojekyll
- name: Deploy π
uses: JamesIves/github-pages-deploy-action@v4.8.0
if: github.ref == 'refs/heads/main'
with:
folder: dist