Skip to content

Commit

Permalink
Liquibase 4.27.0 build PR. (#5732)
Browse files Browse the repository at this point in the history
* chore: updated changelog + xsds for 4.27.0 (#5731)

* chore: updated changelog + xsds for 4.27.0

* chore: dependabots for core

* Fix/released published (#5737)

Update release-published.yml

Signed-off-by: Sayali Mohadikar <76010603+sayaliM0412@users.noreply.github.com>

* fix: we don't have maven wrapper here (#5739)

Co-authored-by: filipe <flautert@liquibase.com>

---------

Signed-off-by: Sayali Mohadikar <76010603+sayaliM0412@users.noreply.github.com>
Co-authored-by: Sayali Mohadikar <76010603+sayaliM0412@users.noreply.github.com>
Co-authored-by: filipe <flautert@liquibase.com>
  • Loading branch information
3 people committed Mar 28, 2024
1 parent 5224852 commit 7ad9b73
Show file tree
Hide file tree
Showing 3 changed files with 1,692 additions and 11 deletions.
28 changes: 17 additions & 11 deletions .github/workflows/release-published.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
tag:
description: 'Release Tag'
required: true
env:
MAVEN_VERSION: '3.9.2'
jobs:
setup:
name: Setup
Expand Down Expand Up @@ -53,7 +55,7 @@ jobs:

deploy_maven:
name: Deploy to Maven
needs: [ setup, manual_trigger_deployment, deploy_javadocs, publish_to_github_packages, deploy_xsd, package-linux, release-docker ]
needs: [ setup, manual_trigger_deployment, deploy_javadocs, publish_to_github_packages, deploy_xsd, release-docker ]
runs-on: ubuntu-22.04
steps:
- name: Download release assets
Expand Down Expand Up @@ -116,7 +118,7 @@ jobs:
sed -i -e "s/<\/licenses>/<\/licenses><scm><connection>private<\/connection><developerConnection>private<\/developerConnection><url>private<\/url><\/scm>/" liquibase-commercial-${version}.pom ## scm info not in the pom
gpg --batch --pinentry-mode=loopback --passphrase "$GPG_PASSWORD" -ab liquibase-commercial-${version}.pom
./mvnw -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
mvn -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
-DrepositoryId=sonatype-nexus-staging \
-DpomFile=liquibase-core-${version}.pom \
Expand All @@ -128,7 +130,7 @@ jobs:
-Dtypes=jar.asc,jar.asc,jar.asc,pom.asc \
-Dclassifiers=,sources,javadoc,
./mvnw -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
mvn -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
-DrepositoryId=sonatype-nexus-staging \
-DpomFile=liquibase-commercial-${version}.pom \
Expand All @@ -140,7 +142,7 @@ jobs:
-Dtypes=jar.asc,jar.asc,jar.asc,pom.asc \
-Dclassifiers=,sources,javadoc,
./mvnw -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
mvn -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
-DrepositoryId=sonatype-nexus-staging \
-DpomFile=liquibase-maven-plugin-${version}.pom \
Expand All @@ -152,7 +154,7 @@ jobs:
-Dtypes=jar.asc,jar.asc,jar.asc,pom.asc \
-Dclassifiers=,sources,javadoc,
./mvnw -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
mvn -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
-DrepositoryId=sonatype-nexus-staging \
-DpomFile=liquibase-cdi-${version}.pom \
Expand All @@ -164,7 +166,7 @@ jobs:
-Dtypes=jar.asc,jar.asc,jar.asc,pom.asc \
-Dclassifiers=,sources,javadoc,
./mvnw -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
mvn -B org.apache.maven.plugins:maven-deploy-plugin:3.0.0-M1:deploy-file \
-Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
-DrepositoryId=sonatype-nexus-staging \
-DpomFile=liquibase-cdi-jakarta-${version}.pom \
Expand All @@ -178,7 +180,7 @@ jobs:
## Release repository
## Have to find the stagingRepositoryId that was auto-generated
rcList=$(./mvnw -B org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:rc-list -DnexusUrl=https://oss.sonatype.org/ -DserverId=sonatype-nexus-staging)
rcList=$(mvn -B org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:rc-list -DnexusUrl=https://oss.sonatype.org/ -DserverId=sonatype-nexus-staging)
#echo $rcList
stagingRepositoryId=$(echo $rcList | grep -o "\[INFO\] orgliquibase-[0-9]*[ ]*OPEN" | grep -o "orgliquibase-[0-9]*")
Expand All @@ -189,13 +191,13 @@ jobs:
exit 1
fi
./mvnw org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:rc-close \
mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:rc-close \
-DnexusUrl=https://oss.sonatype.org/ \
-DserverId=sonatype-nexus-staging \
-DstagingRepositoryId=$stagingRepositoryId \
-DstagingProgressTimeoutMinutes=10
./mvnw org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:rc-release \
mvn org.sonatype.plugins:nexus-staging-maven-plugin:1.6.8:rc-release \
-DautoDropAfterRelease=true \
-DnexusUrl=https://oss.sonatype.org/ \
-DserverId=sonatype-nexus-staging \
Expand Down Expand Up @@ -255,13 +257,17 @@ jobs:
distribution: 'temurin'
cache: 'maven'
server-id: liquibase
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: ${{ env.MAVEN_VERSION }}

- name: Version artifact
run: ./mvnw versions:set -DnewVersion="${{ needs.setup.outputs.version }}"
run: mvn versions:set -DnewVersion="${{ needs.setup.outputs.version }}"

# Publish to GitHub Packages
- name: Publish package to Github
run: ./mvnw -B clean deploy -DskipTests=true
run: mvn -B clean deploy -DskipTests=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TARGET_ARTIFACT_REPOSITORY: liquibase
Expand Down

0 comments on commit 7ad9b73

Please sign in to comment.