-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (31 loc) · 1.13 KB
/
build.yaml
File metadata and controls
38 lines (31 loc) · 1.13 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
name: build
on: [push, pull_request]
jobs:
app:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build package
run: docker-compose up --build build
- name: Build docs
run: docker-compose up --build build-docs
- name: Try building Jupyter lab
run: docker-compose build jupyter-lab
- name: Deploy docs
if: github.ref == 'refs/heads/master'
shell: bash
env:
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:
package: ./js/package.json
token: ${{ secrets.NPM_TOKEN }}
- name: Deploy to PyPI
if: startsWith(github.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.PYPI_API_TOKEN }}