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:
2424 - name : Build the JupyterLite site
2525 run : |
2626 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
3030 with :
31- name : jupyterlite-demo-dist-${{ github.run_number }}
32- path : ./_output
31+ path : ./dist
3332
3433 deploy :
34+ needs : build
3535 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+
3744 runs-on : ubuntu-latest
3845 steps :
39- - name : Checkout
40- uses : actions/checkout@v2.3.1
41- - uses : actions/download-artifact@v2
42- with :
43- name : jupyterlite-demo-dist-${{ github.run_number }}
44- path : ./dist
45- - name : Deploy
46- uses : JamesIves/github-pages-deploy-action@4.1.3
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