change build.yml
	
		
			
	
		
	
	
		
			
				
	
				Build and Release / build (push) Successful in 12m49s
				
					Details
				
			
		
	
				
					
				
			
				
	
				Build and Release / build (push) Successful in 12m49s
				
					Details
				
			
		
	This commit is contained in:
		
							parent
							
								
									73e3d4c5be
								
							
						
					
					
						commit
						01fd73fa1a
					
				| 
						 | 
				
			
			@ -52,19 +52,17 @@ jobs:
 | 
			
		|||
      - name: Create Release
 | 
			
		||||
        id: create_release
 | 
			
		||||
        run: |
 | 
			
		||||
          TAG_NAME="v${{ steps.version.outputs.mod_version }}"
 | 
			
		||||
          RELEASE_NAME="Release $TAG_NAME"
 | 
			
		||||
          TAG_NAME="${{ github.ref_name }}"
 | 
			
		||||
          
 | 
			
		||||
          RESPONSE=$(curl -s -X POST \
 | 
			
		||||
            -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
 | 
			
		||||
            -H "Content-Type: application/json" \
 | 
			
		||||
            -d "{\"tag_name\":\"$TAG_NAME\",\"name\":\"$RELEASE_NAME\",\"draft\":false,\"prerelease\":false}" \
 | 
			
		||||
            -d "{\"tag_name\":\"$TAG_NAME\",\"name\":\"Release $TAG_NAME\",\"draft\":false,\"prerelease\":false}" \
 | 
			
		||||
            "https://git.itqop.pw/api/v1/repos/itqop/whitelist-neoforge/releases")
 | 
			
		||||
          
 | 
			
		||||
          echo "API Response: $RESPONSE"
 | 
			
		||||
          RELEASE_ID=$(echo "$RESPONSE" | jq -r '.id')
 | 
			
		||||
          echo "release_id=$RELEASE_ID" >> $GITHUB_OUTPUT
 | 
			
		||||
          echo "Release created with ID: $RELEASE_ID"
 | 
			
		||||
          echo "Release ID: $RELEASE_ID"
 | 
			
		||||
 | 
			
		||||
      - name: Upload JAR to Release
 | 
			
		||||
        run: |
 | 
			
		||||
| 
						 | 
				
			
			@ -72,7 +70,6 @@ jobs:
 | 
			
		|||
            -H "Authorization: token ${{ secrets.RELEASE_TOKEN }}" \
 | 
			
		||||
            -F "attachment=@${{ steps.jar.outputs.jar_path }}" \
 | 
			
		||||
            "https://git.itqop.pw/api/v1/repos/itqop/whitelist-neoforge/releases/${{ steps.create_release.outputs.release_id }}/assets?name=${{ steps.jar.outputs.jar_name }}"
 | 
			
		||||
          
 | 
			
		||||
          echo "✓ JAR uploaded to Release"
 | 
			
		||||
 | 
			
		||||
      - name: Upload to Gitea Package Registry
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue