-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.15 KB
/
Copy pathdeploy-examples.yaml
File metadata and controls
38 lines (35 loc) · 1.15 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
name: Deploy examples
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
# prevents this action from running on forks
if: github.repository == 'FaberVitale/solid-bricks'
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: 'v16.15.0'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm run build:packages
- name: Build examples
run: pnpm run build:examples:gh-pages
- name: Deploy barcode-generator 🚀
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: gh-pages # The branch the action should deploy to.
folder: examples/barcode-generator/dist # The folder the action should deploy.
target-folder: examples/barcode-generator