ci: Add pages deployment
This commit is contained in:
		
							
								
								
									
										27
									
								
								.github/workflows/docs.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										27
									
								
								.github/workflows/docs.yaml
									
									
									
									
										vendored
									
									
								
							@@ -11,5 +11,28 @@ jobs:
 | 
				
			|||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v4
 | 
					      - uses: actions/checkout@v4
 | 
				
			||||||
      - name: Build doc
 | 
					      - name: Build docs
 | 
				
			||||||
        run: v doc -m . -f html -o doc/
 | 
					        run: |
 | 
				
			||||||
 | 
					          ls -alFh
 | 
				
			||||||
 | 
					          wget https://github.com/vlang/v/releases/latest/download/v_linux.zip
 | 
				
			||||||
 | 
					          unzip v_linux.zip
 | 
				
			||||||
 | 
					          ./v/v doc -m . -f html -o doc/
 | 
				
			||||||
 | 
					          ln -s doc/licenseid.html doc/index.html
 | 
				
			||||||
 | 
					          ls -alFh doc/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Upload static files as artifact
 | 
				
			||||||
 | 
					        id: deployment
 | 
				
			||||||
 | 
					        uses: actions/upload-pages-artifact@v3
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          path: doc/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  deploy:
 | 
				
			||||||
 | 
					    environment:
 | 
				
			||||||
 | 
					      name: github-pages
 | 
				
			||||||
 | 
					      url: ${{ steps.deployment.outputs.page_url }}
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    needs: build
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Deploy to GitHub Pages
 | 
				
			||||||
 | 
					        id: deployment
 | 
				
			||||||
 | 
					        uses: actions/deploy-pages@v4
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user