A mirror of my website's source code.

Added GitLab CI/CD File for Pages

Site will now deploy to GitLab Pages in addition to GitHub pages.

This might take a few tries to get right, but I'm hoping I did it right the first one.

by steve0greatness, Monday, 6 May 2024, 03:12:06 (1714965126), pushed by steve0greatness, Monday, 6 May 2024, 03:46:51 (1714967211)

Author identity: Steve0Greatness <steve0greatnessiscool@gmail.com>

3e7f0f3c71bbc61c352ee9dde917981fda9578ab

.gitlab-ci.yml

@@ -0,0 +1,18 @@

                                
                                
                                
                            
                                
                                    
                                        
                                        image: busybox:latest
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        build:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          stage: build
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          image: python:latest
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          script:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            - python build.py gh-pages-deploy
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        pages:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          stage: deploy
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          script:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            - echo "The site will be deployed to $CI_PAGES_URL"
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          artifacts:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            paths:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                              - build
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                          rules:
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH