A mirror of my website's source code.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

Hopefully fixed this stupid script

steve0greatness,
created on Monday, 6 May 2024, 06:22:20 (1714976540), received on 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