mirror of
				https://git.unlock-music.dev/um/web.git
				synced 2025-11-04 19:23:28 +08:00 
			
		
		
		
	更新.gitlab-ci.yml文件
This commit is contained in:
		
							parent
							
								
									8ccdf9a762
								
							
						
					
					
						commit
						66bbed3d78
					
				
							
								
								
									
										43
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								.gitlab-ci.yml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,43 @@
 | 
			
		||||
image: node:16
 | 
			
		||||
cache:
 | 
			
		||||
  paths:
 | 
			
		||||
    - node_modules/
 | 
			
		||||
 | 
			
		||||
stages:          
 | 
			
		||||
  - build
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
build-job:
 | 
			
		||||
  stage: build
 | 
			
		||||
  script: |
 | 
			
		||||
    npm config set registry http://mirrors.cloud.tencent.com/npm/
 | 
			
		||||
    npm ci
 | 
			
		||||
 | 
			
		||||
    npm run build
 | 
			
		||||
    tar -czf legacy.tar.gz -C ./dist .
 | 
			
		||||
    cd dist
 | 
			
		||||
    zip -rJ9 ../legacy.zip *
 | 
			
		||||
    cd ..
 | 
			
		||||
 | 
			
		||||
    npm run make-extension
 | 
			
		||||
    cd dist
 | 
			
		||||
    zip -rJ9 ../extension.zip *
 | 
			
		||||
    cd ..
 | 
			
		||||
 | 
			
		||||
    npm run build -- --modern
 | 
			
		||||
    tar -czf modern.tar.gz -C ./dist .
 | 
			
		||||
    cd dist
 | 
			
		||||
    zip -rJ9 ../modern.zip *
 | 
			
		||||
    cd ..
 | 
			
		||||
 | 
			
		||||
    sha256sum *.tar.gz *.zip > sha256sum.txt
 | 
			
		||||
 | 
			
		||||
  artifacts:
 | 
			
		||||
    name: "$CI_JOB_NAME"
 | 
			
		||||
    paths:
 | 
			
		||||
      - legacy.zip
 | 
			
		||||
      - legacy.tar.gz
 | 
			
		||||
      - extension.zip
 | 
			
		||||
      - modern.zip
 | 
			
		||||
      - modern.tar.gz
 | 
			
		||||
      - sha256sum.txt
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user