A mirror of my website's source code.

Hopefully fixed this stupid script

by steve0greatness, Monday, 6 May 2024, 06:22:20 (1714976540), pushed by steve0greatness, Monday, 6 May 2024, 06:24:33 (1714976673)

Author identity: Steve0Greatness <steve0greatnessiscool@gmail.com>

914746d0626b1953926b0a74f9fac23c2bf1f740

ManualDeploy.ps1

@@ -1,4 +1,8 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            python build.py cb-pages
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        $pagesbranchexists = (git branch --list pages) -Eq $null
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        if ($pagesbranchexists) {
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            git branch -D pages
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            git switch --orphan pages
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            ls | grep -v build | rm -r -fo
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            mv build/* .
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        

@@ -6,5 +10,3 @@ git add .

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            git commit -m "Pages Build & Deploy"
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            git push codeberg pages -f
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            git push roundabout pages -f
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        git branch -d pages
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        git checkout main