forked from vechain/sync2
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 984 Bytes
/
deploy-pwa-preview.yaml
File metadata and controls
44 lines (34 loc) · 984 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
name: Deploy PWA(Preview)
on:
# schedule:
# - cron: '30 1 * * *' # builds nightly
workflow_dispatch:
env:
DIST_TAG: preview
jobs:
BuildAndDeploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: Install Dependencies
run: npm ci
- name: Build Application
run: npx quasar build -m pwa
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.ADDTIONAL_GITHUB_TOKEN }}
publish_dir: dist/pwa
external_repository: vechain/lite.sync.vecha.in
cname: lite.sync.vecha.in
force_orphan: true