Add pages workflow
This commit is contained in:
		
							parent
							
								
									d4e3c40df1
								
							
						
					
					
						commit
						4154d270ae
					
				| 
						 | 
					@ -0,0 +1,32 @@
 | 
				
			||||||
 | 
					name: GitHub build pages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					      - main
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  deploy:
 | 
				
			||||||
 | 
					    name: Build and deploy GH pages
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    permissions:
 | 
				
			||||||
 | 
					      contents: write
 | 
				
			||||||
 | 
					    concurrency:
 | 
				
			||||||
 | 
					      group: ${{ github.workflow }}-${{ github.ref }}
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - name: Checkout
 | 
				
			||||||
 | 
					        uses: actions/checkout@v3
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Setup Node
 | 
				
			||||||
 | 
					        uses: actions/setup-node@v3
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          node-version: '18'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Build
 | 
				
			||||||
 | 
					        run: npm ci && npm run publish
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					      - name: Deploy
 | 
				
			||||||
 | 
					        uses: peaceiris/actions-gh-pages@v3
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          github_token: ${{ secrets.GITHUB_TOKEN }}
 | 
				
			||||||
 | 
					          publish_dir: ./dist
 | 
				
			||||||
		Loading…
	
		Reference in New Issue