File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Deploy Docs to GitHub Pages
1+ name : Deploy DeepDIP to GitHub Pages
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 workflow_dispatch :
77
88permissions :
@@ -11,34 +11,16 @@ permissions:
1111 id-token : write
1212
1313jobs :
14- build :
14+ deploy :
1515 runs-on : ubuntu-latest
16- outputs :
17- artifact-path : ${{ steps.build.outputs.artifact-path }}
1816 steps :
19- - uses : actions/checkout@v4
20- - name : Prepare site (optional)
21- run : |
22- # For a static site without build step, ensure public/ exists
23- mkdir -p public
24- echo "<!DOCTYPE html><html><body><h1>DeepDIP Docs Coming Soon</h1></body></html>" > public/index.html
25- - name : Upload Pages Artifact
26- id : build
17+ - name : Checkout source
18+ uses : actions/checkout@v4
19+
20+ - name : Upload static content
2721 uses : actions/upload-pages-artifact@v3
2822 with :
29- path : public
23+ path : ./ public
3024
31- deploy :
32- runs-on : ubuntu-latest
33- needs : build
34- permissions :
35- contents : read
36- pages : write
37- id-token : write
38- environment :
39- name : github-pages
40- url : ${{ steps.deployment.outputs.page_url }}
41- steps :
4225 - name : Deploy to GitHub Pages
43- id : deployment
4426 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments