File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1- name : Book Deploy 
1+ name : Create and deploy html and pdf on gh-pages 
22
33on :
44  release :
3939    - name : List Available Images 
4040      run : docker images 
4141
42-     - name : Make Docker HTML 
42+     - name : Make Docker HTML (JBook---create html)  
4343      run : make docker-html 
4444
4545    - name : Check links - Markdown 
@@ -48,17 +48,23 @@ jobs:
4848    - name : Make Docker Linkcheck 
4949      run : make docker-linkcheck 
5050
51-     - name : Make Docker PDF 
51+     - name : Make Docker PDF  (JBook---create pdf)  
5252      run : | 
5353        make docker-pdf 
54-         sudo cp book/_build/latex/book.pdf book/_build/html/book.pdf 
54+         sudo cp -v  book/_build/latex/book.pdf book/_build/html/book.pdf 
5555
56-      #  Deploy the book's HTML to gh-pages branch
56+      - name : Gather outputs in pages 
57+       run : | 
58+         mkdir -p pages 
59+         cp -av book/_build/html/* pages 
60+         cp -av book/_build/latex/book.pdf pages 
61+ 
62+      #  Deploy output to gh-pages branch
5763    - name : GitHub Pages action 
5864      uses : peaceiris/actions-gh-pages@v3 
5965      with :
6066        github_token : ${{ secrets.GITHUB_TOKEN }} 
61-         publish_dir : ./book/_build/html  
67+         publish_dir : ./pages  
6268
6369    - uses : marvinpinto/action-automatic-releases@latest 
6470      with :
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments