mirror of
				https://github.com/open-webui/mcpo
				synced 2025-06-26 18:26:58 +00:00 
			
		
		
		
	refac
This commit is contained in:
		
							parent
							
								
									a7a113614c
								
							
						
					
					
						commit
						d9b56a5222
					
				
							
								
								
									
										11
									
								
								.github/workflows/build-release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								.github/workflows/build-release.yml
									
									
									
									
										vendored
									
									
								
							| @ -34,7 +34,7 @@ jobs: | ||||
|                   CHANGELOG_ESCAPED=$(echo "$CHANGELOG_CONTENT" | sed ':a;N;$!ba;s/\n/%0A/g') | ||||
|                   echo "Extracted latest release notes from CHANGELOG.md:"  | ||||
|                   echo -e "$CHANGELOG_CONTENT"  | ||||
|                   echo "content=$CHANGELOG_ESCAPED" >> "$GITHUB_OUTPUT" | ||||
|                   echo "::set-output name=content::$CHANGELOG_ESCAPED" | ||||
| 
 | ||||
|             - name: Create GitHub release | ||||
|               uses: actions/github-script@v7 | ||||
| @ -42,15 +42,14 @@ jobs: | ||||
|                   github-token: ${{ secrets.GITHUB_TOKEN }} | ||||
|                   script: | | ||||
|                       const changelog = `${{ steps.changelog.outputs.content }}`; | ||||
|                       const version = `${{ steps.get_version.outputs.version }}`; | ||||
|                       const release = await github.rest.repos.createRelease({ | ||||
|                         owner: context.repo.owner, | ||||
|                         repo: context.repo.repo, | ||||
|                         tag_name: `v${version}`, | ||||
|                         name: `v${version}`, | ||||
|                         tag_name: `v${{ steps.get_version.outputs.version }}`, | ||||
|                         name: `v${{ steps.get_version.outputs.version }}`, | ||||
|                         body: changelog, | ||||
|                       }); | ||||
|                       console.log(`Created release ${release.data.html_url}`); | ||||
|                       }) | ||||
|                       console.log(`Created release ${release.data.html_url}`) | ||||
| 
 | ||||
|             - name: Upload package to GitHub release | ||||
|               uses: actions/upload-artifact@v4 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user