File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 1717      - completed 
1818
1919jobs :
20-   publish -docs
20+   deploy -docs
2121    #  Uncomment this if statement to deploy only when the PR builds cleanly
2222    #  if: github.event.workflow_run.conclusion == 'success'
2323
6363id : unzip-docs 
6464        run : unzip docs.zip 
6565
66-       - id : get-top-dir 
67-         run : | 
68-           root=$(ls -d */index.html | sed -r 's/(.*)\/index\.html/\1/') 
69-           echo "top-dir=$root" >> $GITHUB_OUTPUT 
70- 
7166      - id : unzip-changelog 
7267        if : ${{ hashFiles('changelog.zip') != '' }} 
7368        run : unzip changelog.zip 
@@ -97,13 +92,13 @@ jobs:
9792          SITE_DIR : ${{ steps.get-top-dir.outputs.top-dir }} 
9893        run : | 
9994          npm install -g surge 
100-           surge ./$SITE_DIR  $DEPLOY_URL --token "$SURGE_TOKEN" 
95+           surge . $DEPLOY_URL --token "$SURGE_TOKEN" 
10196
10297#  If the PR artifacts include a changelog file, add it to the PR as a comment
10398      #  The changelog contains links to new and changed files in the deployed docs
10499      - name : Comment on PR (changelog) 
105100        if : ${{ hashFiles('changelog') != '' }} 
106-         uses : marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31   # v2.9.0 
101+         uses : marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405   # v2
107102        with :
108103          number : ${{ steps.get-deploy-id.outputs.deploy-id }} 
109104          recreate : true 
@@ -116,7 +111,7 @@ jobs:
116111        if : ${{ hashFiles('changelog') == '' }} 
117112        env :
118113          DEPLOY_URL : ${{ steps.get-deploy-url.outputs.deploy-url }} 
119-         uses : marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31   # v2.9.0 
114+         uses : marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405   # v2
120115        with :
121116          number : ${{ steps.get-deploy-id.outputs.deploy-id }} 
122117          header : docs-pr-changes 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments