-
Notifications
You must be signed in to change notification settings - Fork 4
30 lines (25 loc) · 892 Bytes
/
build.yaml
File metadata and controls
30 lines (25 loc) · 892 Bytes
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
name: build
on: [push]
jobs:
app:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build library and docs
run: docker-compose up --build build
- name: Codecov
if: github.ref == 'refs/heads/master'
uses: codecov/codecov-action@v1
- name: Deploy docs
if: github.ref == 'refs/heads/master'
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DEPLOY_GITHUB_TOKEN: ${{ secrets.DEPLOY_GITHUB_TOKEN }}
run: ./scripts/deploy-docs.sh
- name: Deploy to NPM
if: startsWith(github.ref, 'refs/tags/v')
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}