File tree Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Expand file tree Collapse file tree 1 file changed +16
-17
lines changed Original file line number Diff line number Diff line change @@ -24,26 +24,25 @@ jobs:
24
24
- name : Build the JupyterLite site
25
25
run : |
26
26
cp README.md content
27
- jupyter lite build --contents content
28
- - name : Upload (dist)
29
- uses : actions/upload-artifact@v2
27
+ jupyter lite build --contents content --output-dir dist
28
+ - name : Upload artifact
29
+ uses : actions/upload-pages- artifact@v1
30
30
with :
31
- name : jupyterlite-demo-dist-${{ github.run_number }}
32
- path : ./_output
31
+ path : ./dist
33
32
34
33
deploy :
34
+ needs : build
35
35
if : github.ref == 'refs/heads/main'
36
- needs : [build]
36
+ permissions :
37
+ pages : write
38
+ id-token : write
39
+
40
+ environment :
41
+ name : github-pages
42
+ url : ${{ steps.deployment.outputs.page_url }}
43
+
37
44
runs-on : ubuntu-latest
38
45
steps :
39
- - name : Checkout
40
-
41
- - uses : actions/download-artifact@v2
42
- with :
43
- name : jupyterlite-demo-dist-${{ github.run_number }}
44
- path : ./dist
45
- - name : Deploy
46
-
47
- with :
48
- branch : gh-pages
49
- folder : dist
46
+ - name : Deploy to GitHub Pages
47
+ id : deployment
48
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments