-
Notifications
You must be signed in to change notification settings - Fork 11
46 lines (37 loc) · 1.08 KB
/
deploy.prod.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: Test, build and deploy to tempo.agate.blue
on:
push:
branches:
- main
# - $default-branch # Set a branch name to trigger deployment
pull_request:
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Run tests
run: yarn test:unit
- name: Build
run: yarn build
env:
VUE_APP_DOMAIN: tempo.agate.blue
VUE_APP_PLAUSIBLE_HOST: https://stats.agate.blue
VUE_APP_BUILD_ID: ${{ github.sha }}
- name: Deploy 🚀
uses: JamesIves/[email protected]
if: github.ref == 'refs/heads/main'
with:
branch: gh-pages # The branch the action should deploy to.
folder: dist # The folder the action should deploy.