|
1 | 1 | name: Build and Deploy |
2 | 2 | on: |
3 | | - push: |
4 | | - branches: |
| 3 | + push: |
| 4 | + branches: |
5 | 5 | - master |
6 | 6 | jobs: |
7 | 7 | build-and-deploy: |
8 | 8 | runs-on: ubuntu-latest |
9 | 9 | steps: |
10 | | - - name: Checkout |
11 | | - uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. |
12 | | - with: |
13 | | - persist-credentials: false |
| 10 | + - name: Checkout |
| 11 | + uses: actions/checkout@v2 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly. |
| 12 | + with: |
| 13 | + persist-credentials: false |
14 | 14 |
|
15 | | - - name: Use Node.js |
16 | | - uses: actions/setup-node@v1 |
17 | | - with: |
18 | | - node-version: '12.x' |
| 15 | + - name: Use Node.js |
| 16 | + uses: actions/setup-node@v1 |
| 17 | + with: |
| 18 | + node-version: "12.x" |
19 | 19 |
|
20 | | - - name: Install dependencies |
21 | | - run: yarn install --frozen-lockfile |
22 | | - |
23 | | - - name: Test & Coverage |
24 | | - run: yarn coverage --updateSnapshot |
| 20 | + - name: Install dependencies |
| 21 | + run: yarn install --frozen-lockfile |
25 | 22 |
|
26 | | - - name: Build |
27 | | - run: yarn build-storybook |
28 | | - |
29 | | - - name: Deploy |
30 | | - uses: JamesIves/github-pages-deploy-action@releases/v3 |
31 | | - with: |
32 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
33 | | - BRANCH: gh-pages # The branch the action should deploy to. |
34 | | - FOLDER: public # The folder the action should deploy. |
| 23 | + - name: Test & Coverage |
| 24 | + run: yarn coverage --updateSnapshot |
35 | 25 |
|
36 | | - - name: Codecov |
37 | | - run: bash <(curl -s https://codecov.io/bash) -f './coverage/clover.xml' -t ${{ secrets.CODECOV_TOKEN }} || echo 'Codecov failed to upload' |
| 26 | + - name: Build |
| 27 | + run: yarn build-storybook |
38 | 28 |
|
| 29 | + - name: Deploy |
| 30 | + uses: JamesIves/github-pages-deploy-action@releases/v3 |
| 31 | + with: |
| 32 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 33 | + BRANCH: gh-pages # The branch the action should deploy to. |
| 34 | + FOLDER: public # The folder the action should deploy. |
| 35 | + |
| 36 | + - name: Codecov |
| 37 | + run: bash <(curl -s https://codecov.io/bash) -f './coverage/clover.xml' -t ${{ secrets.CODECOV_TOKEN }} || echo 'Codecov failed to upload' |
0 commit comments