mirror of
				https://github.moeyy.xyz/https://github.com/GeWuYou/forgeboot
				synced 2025-11-01 04:02:07 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			558 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			558 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| stages:
 | |
|   - build
 | |
|   - publish
 | |
| 
 | |
| # 🧪 test 构建
 | |
| build:
 | |
|   stage: build
 | |
|   rules:
 | |
|     - if: '$CI_COMMIT_BRANCH == "test"'
 | |
|   script:
 | |
|     - echo "🔧 授予 gradlew 执行权限..."
 | |
|     - chmod +x gradlew
 | |
|     - ./gradlew clean build
 | |
|   tags:
 | |
|     - java
 | |
| 
 | |
| # 🧪 test 发布 SNAPSHOT 包(允许覆盖)
 | |
| publish:
 | |
|   stage: publish
 | |
|   needs: ["build"]
 | |
|   rules:
 | |
|     - if: '$CI_COMMIT_BRANCH == "test"'
 | |
|   script:
 | |
|     - echo "🔧 授予 gradlew 执行权限..."
 | |
|     - chmod +x gradlew
 | |
|     - ./gradlew publishMavenJavaPublicationToGitLabRepository
 | |
|   tags:
 | |
|     - java
 |