-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathGitHubPagesDeploymentWorkflow.yml
More file actions
38 lines (31 loc) · 864 Bytes
/
GitHubPagesDeploymentWorkflow.yml
File metadata and controls
38 lines (31 loc) · 864 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
name: Deploy v2 to GitHub Pages subfolder
on:
push:
branches: [ v2 ] # change to your v2 branch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install
run: yarn install --frozen-lockfile
- name: Build v2 (Quasar SPA)
env:
PUBLIC_BASE: /repo/v2/
NODE_OPTIONS: --max_old_space_size=4096
run: yarn quasar build
- name: Deploy dist/spa to gh-pages/v2
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: dist/spa
target-folder: v2
clean: false # keep v1 files at root