mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Create new workflow
This commit is contained in:
		
							
								
								
									
										26
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								.github/workflows/ci.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
				
			|||||||
 | 
					name: CI/CD
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					on:
 | 
				
			||||||
 | 
					  push:
 | 
				
			||||||
 | 
					    branches:
 | 
				
			||||||
 | 
					      - gh-pages
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					jobs:
 | 
				
			||||||
 | 
					  ci-cd:
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					    - uses: actions/checkout@v4
 | 
				
			||||||
 | 
					    - uses: actions/setup-node@v4
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        node-version: 20
 | 
				
			||||||
 | 
					        registry-url: https://registry.npmjs.org/
 | 
				
			||||||
 | 
					        cache: npm
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - name: Install dependencies
 | 
				
			||||||
 | 
					      run: npm install
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - name: Build and test
 | 
				
			||||||
 | 
					      run: npm run build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    - name: Deploy to GitHub Pages
 | 
				
			||||||
 | 
					      run: npm run deploy -- -m "Update GitHub Pages"
 | 
				
			||||||
		Reference in New Issue
	
	Block a user