@@ -25,16 +25,19 @@ jobs:
25
25
- name : Set up Micromamba
26
26
uses : mamba-org/setup-micromamba@v2
27
27
with :
28
- micromamba-version : " latest"
28
+ micromamba-version : " latest" # Use the latest version of micromamba
29
29
environment-file : .github/doc_env.yaml # Reference your environment.yml file
30
30
init-shell : bash
31
31
cache-environment : true
32
32
post-cleanup : ' all'
33
+ # cache: true # Cache the micromamba environment
33
34
34
35
- name : Install package
36
+ # shell: bash -l {0}
35
37
run : pip install -e .
36
38
37
39
- name : Generate Documentation
40
+ shell : bash -l {0}
38
41
run : pdoc synaptic_reconstruction -o doc/html
39
42
40
43
- name : Verify Documentation Output
43
46
- name : Upload Documentation Artifact
44
47
uses : actions/upload-artifact@v3
45
48
with :
46
- name : github-pages # Must match the artifact_name in deploy-pages
49
+ name : documentation
47
50
path : doc/html
48
51
49
52
deploy :
@@ -53,64 +56,16 @@ jobs:
53
56
permissions :
54
57
pages : write
55
58
id-token : write
59
+ environment :
60
+ name : github-pages
61
+ url : ${{ steps.deployment.outputs.page_url }}
56
62
steps :
57
- - name : Deploy to GitHub Pages
58
- uses : actions/deploy-pages@v2
59
- with :
60
- artifact_name : github-pages
61
- # jobs:
62
- # build:
63
- # name: Build Documentation
64
- # runs-on: ubuntu-latest
65
-
66
- # steps:
67
- # - name: Checkout Code
68
- # uses: actions/checkout@v3
69
-
70
- # - name: Set up Micromamba
71
- # uses: mamba-org/setup-micromamba@v2
72
- # with:
73
- # micromamba-version: "latest" # Use the latest version of micromamba
74
- # environment-file: .github/doc_env.yaml # Reference your environment.yml file
75
- # init-shell: bash
76
- # cache-environment: true
77
- # post-cleanup: 'all'
78
- # # cache: true # Cache the micromamba environment
79
-
80
- # - name: Install package
81
- # # shell: bash -l {0}
82
- # run: pip install -e .
83
-
84
- # - name: Generate Documentation
85
- # shell: bash -l {0}
86
- # run: pdoc synaptic_reconstruction -o doc/html
87
-
88
- # - name: Verify Documentation Output
89
- # run: ls -la doc/html
90
-
91
- # - name: Upload Documentation Artifact
92
- # uses: actions/upload-artifact@v3
93
- # with:
94
- # name: documentation
95
- # path: doc/html
96
-
97
- # deploy:
98
- # name: Deploy Documentation
99
- # needs: build
100
- # runs-on: ubuntu-latest
101
- # permissions:
102
- # pages: write
103
- # id-token: write
104
- # environment:
105
- # name: github-pages
106
- # url: ${{ steps.deployment.outputs.page_url }}
107
- # steps:
108
- # - name: Download Documentation Artifact
109
- # uses: actions/download-artifact@v3
110
- # with:
111
- # name: documentation
112
- # - name: Deploy to GiHub Pages
113
- # uses: actions/deploy-pages@v2
114
- # with:
115
- # artifact_name: github-pages
63
+ - name : Download Documentation Artifact
64
+ uses : actions/download-artifact@v3
65
+ with :
66
+ name : documentation
67
+ - name : Deploy to GiHub Pages
68
+ uses : actions/deploy-pages@v2
69
+ with :
70
+ artifact_name : documentation
116
71
0 commit comments