reomove old GH actions
This commit is contained in:
parent
f91fe15ec6
commit
0f62a508ce
1 changed files with 0 additions and 231 deletions
62
.github/workflows/maven-central-release.yml
vendored
62
.github/workflows/maven-central-release.yml
vendored
|
|
@ -1,62 +0,0 @@
|
|||
name: Maven Central Release
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
releaseVersion:
|
||||
description: "Release version"
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
|
||||
- name: Capture release version
|
||||
run: echo RELEASE_VERSION=${{ github.event.inputs.releaseVersion }} >> $GITHUB_ENV
|
||||
|
||||
- name: Prepare directory structure
|
||||
run: |
|
||||
mkdir -p nexus/org/springframework/experimental/mcp-parent/$RELEASE_VERSION
|
||||
mkdir -p nexus/org/springframework/experimental/mcp/$RELEASE_VERSION
|
||||
mkdir -p nexus/org/springframework/experimental/spring-ai-mcp/$RELEASE_VERSION
|
||||
|
||||
- name: Download release files from Artifactory
|
||||
env:
|
||||
ARTIFACTORY_URL: "https://repo.spring.io/libs-staging-local/org/springframework/experimental"
|
||||
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
|
||||
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
|
||||
run: |
|
||||
echo "Downloading parent POM artifacts"
|
||||
cd nexus/org/springframework/experimental/spring-ai-mcp/$RELEASE_VERSION
|
||||
wget --user="$ARTIFACTORY_USERNAME" --password="$ARTIFACTORY_PASSWORD" $ARTIFACTORY_URL/spring-ai-mcp/$RELEASE_VERSION/spring-ai-mcp-$RELEASE_VERSION.pom
|
||||
|
||||
echo "Downloading core artifacts"
|
||||
cd ../../../../../..
|
||||
cd nexus/org/springframework/experimental/mcp/$RELEASE_VERSION
|
||||
wget --user="$ARTIFACTORY_USERNAME" --password="$ARTIFACTORY_PASSWORD" $ARTIFACTORY_URL/mcp/$RELEASE_VERSION/mcp-$RELEASE_VERSION.pom
|
||||
wget --user="$ARTIFACTORY_USERNAME" --password="$ARTIFACTORY_PASSWORD" $ARTIFACTORY_URL/mcp/$RELEASE_VERSION/mcp-$RELEASE_VERSION.jar
|
||||
wget --user="$ARTIFACTORY_USERNAME" --password="$ARTIFACTORY_PASSWORD" $ARTIFACTORY_URL/mcp/$RELEASE_VERSION/mcp-$RELEASE_VERSION-javadoc.jar
|
||||
wget --user="$ARTIFACTORY_USERNAME" --password="$ARTIFACTORY_PASSWORD" $ARTIFACTORY_URL/mcp/$RELEASE_VERSION/mcp-$RELEASE_VERSION-sources.jar
|
||||
|
||||
echo "Downloading spring artifacts"
|
||||
cd ../../../../../..
|
||||
cd nexus/org/springframework/experimental/spring-ai-mcp/$RELEASE_VERSION
|
||||
wget --user="$ARTIFACTORY_USERNAME" --password="$ARTIFACTORY_PASSWORD" $ARTIFACTORY_URL/spring-ai-mcp/$RELEASE_VERSION/spring-ai-mcp-$RELEASE_VERSION.pom
|
||||
wget --user="$ARTIFACTORY_USERNAME" --password="$ARTIFACTORY_PASSWORD" $ARTIFACTORY_URL/spring-ai-mcp/$RELEASE_VERSION/spring-ai-mcp-$RELEASE_VERSION.jar
|
||||
wget --user="$ARTIFACTORY_USERNAME" --password="$ARTIFACTORY_PASSWORD" $ARTIFACTORY_URL/spring-ai-mcp/$RELEASE_VERSION/spring-ai-mcp-$RELEASE_VERSION-javadoc.jar
|
||||
wget --user="$ARTIFACTORY_USERNAME" --password="$ARTIFACTORY_PASSWORD" $ARTIFACTORY_URL/spring-ai-mcp/$RELEASE_VERSION/spring-ai-mcp-$RELEASE_VERSION-sources.jar
|
||||
|
||||
- name: Sign artifacts and release them to Maven Central
|
||||
uses: spring-io/nexus-sync-action@main
|
||||
id: nexus
|
||||
with:
|
||||
url: ${{ secrets.OSSRH_URL }}
|
||||
username: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
|
||||
password: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
|
||||
staging-profile-name: ${{ secrets.OSSRH_STAGING_PROFILE_NAME }}
|
||||
create: true
|
||||
upload: true
|
||||
close: true
|
||||
release: true
|
||||
generate-checksums: true
|
||||
Loading…
Reference in a new issue