-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.31 KB
/
deploy-dev.yml
File metadata and controls
54 lines (45 loc) · 1.31 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: deploy-dev
run-name: Deploy to edgio - dev
on:
workflow_dispatch:
push:
branches:
- main
jobs:
deploy-to-edgio:
runs-on: ubuntu-latest
env:
EDGIO_DEPLOY_TOKEN: ${{ secrets.EDGIO_DEPLOY_TOKEN }}
EDGIO_ENVIROMENT: dev
steps:
- uses: actions/checkout@v4
name: Checkout
- uses: actions/setup-node@v4
name: Setup node
with:
node-version: '20.x'
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v4
name: Restore yarn cache
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: |
yarn install
- name: Clone toptal templates
run: |
yarn clone-templates
- uses: awalsh128/cache-apt-pkgs-action@latest
name: Cache apt packages
with:
packages: attr
version: 1.0
- name: Deploy to edgio
run: |
npx edgio deploy --property=gitignore --organization=profiq -e $EDGIO_ENVIROMENT --token=$EDGIO_DEPLOY_TOKEN