-
Notifications
You must be signed in to change notification settings - Fork 32
43 lines (40 loc) · 1.2 KB
/
main.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
name: CI
on: [push, pull_request]
jobs:
try:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
ember-version:
- 'ember-default'
- 'ember-lts-3.12'
- 'ember-lts-3.16'
- 'ember-release'
- 'ember-beta'
- 'ember-canary'
env:
CI: true
EMBER_TRY_SCENARIO: ${{ matrix.ember-version }}
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
- run: yarn install
- run: node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
continue-on-error: ${{ matrix.ember-version == 'ember-canary' }}
docs:
runs-on: ubuntu-latest
timeout-minutes: 15
needs: []
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
- run: yarn install
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Github Action"
- run: node_modules/.bin/ember deploy production
continue-on-error: true