forked from cohstats/coh3-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.34 KB
/
deploy.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: Build and Deploy Web - DEV
on:
push:
branches:
- master
env:
EDGIO_ENV: dev
jobs:
build-deploy-web:
name: Deploy Web Dev
environment:
name: dev
url: https://dev.coh3stats.com/
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Setup Node
uses: actions/setup-node@master
with:
node-version: "16.x"
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules-v2
with:
path: |
node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Deps
run: yarn --prefer-offline --frozen-lockfile install
- name: Disable Vercel telemetry
run: yarn next telemetry disable
- name: Deploy to Edgio hosting
env:
DEPLOY_TOKEN: ${{ secrets.EDGIO_DEPLOY_TOKEN}}
# Deploy command automatically runs the build
# Deploy command pulls ENV variables https://docs.edg.io/guides/basics/environments#environment-variables
run: |
npx edgio deploy -e $EDGIO_ENV --token $DEPLOY_TOKEN