File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ workflow_dispatch :
9+ pull_request :
10+ branches :
11+ - ' *'
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+
20+ - name : Install mamba
21+ uses : mamba-org/setup-micromamba@v2
22+ with :
23+ environment-file : build-environment.yml
24+ cache-environment : true
25+
26+ - name : Build the JupyterLite site
27+ shell : bash -l {0}
28+ run : |
29+ cp README.md content
30+ jupyter lite build --contents content --output-dir dist
31+
32+ - name : Upload artifact
33+ uses : actions/upload-pages-artifact@v3
34+ with :
35+ path : ./dist
36+
37+ deploy :
38+ needs : build
39+ if : github.ref == 'refs/heads/main'
40+ permissions :
41+ pages : write
42+ id-token : write
43+
44+ environment :
45+ name : github-pages
46+ url : ${{ steps.deployment.outputs.page_url }}
47+
48+ runs-on : ubuntu-latest
49+ steps :
50+ - name : Deploy to GitHub Pages
51+ id : deployment
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments