forked from jupyterlite/demo
-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (50 loc) 路 1.33 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
42
43
44
45
46
47
48
49
50
51
52
53
name: Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch the release
run: |
curl -L https://github.com/jtpio/jupyterlite/releases/download/v0.1.0a0/jupyterlite-app-0.1.0-alpha.0.tgz | tar -xz
mv package dist
- name: Copy the federated extensions
run: |
# TODO
- name: Copy the content
run: |
mkdir -p dist/api/contents/ dist/files
cp all.json dist/api/contents/
cp *.csv *.ipynb dist/files
- name: List the content of the app
run: |
tree dist
- name: Upload (dist)
uses: actions/upload-artifact@v2
with:
name: jupyterlite-demo dist ${{ github.run_number }}
path: ./dist
deploy:
if: github.ref == 'refs/heads/main'
needs: [build]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.1
- uses: actions/download-artifact@v2
with:
name: jupyterlite-demo dist ${{ github.run_number }}
path: ./dist
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.3
with:
branch: gh-pages
folder: dist