-
Notifications
You must be signed in to change notification settings - Fork 19
46 lines (46 loc) · 1.03 KB
/
examples.yml
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
name: examples
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ${{matrix.os}}
strategy:
matrix:
os:
- ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 18
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
run_install: false
- name: Install
run: pnpm install
- name: Build
run: pnpm build
- name: Append Analytics
run: |
node scripts/append-ga.cjs demos/webpack-app/public
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: demos
- name: Deploy
id: deployment
uses: actions/deploy-pages@v1