-
Notifications
You must be signed in to change notification settings - Fork 155
41 lines (35 loc) · 1.04 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
name: Kitsu Web Deployment
on:
push:
branches:
- the-future
jobs:
deploy:
name: Node ${{ matrix.node_version}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [14]
os: [ubuntu-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Use Node ${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node_version }}
- name: Restore Cache
uses: actions/cache@v2
with:
path: |
node_modules
key: ${{ matrix.os }}-${{ matrix.node_version }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ matrix.os }}-${{ matrix.node_version }}-yarn-
- name: Install Dependencies
run: yarn install --pure-lockfile
- name: Build App
run: yarn ember deploy production
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}