Skip to content

Commit

Permalink
Finish deployment with a release for non-snapshot versions
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvavrik committed Dec 12, 2024
1 parent 6dc7218 commit 9c9cba3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: 'Release Quarkus QE Test Framework'
description: 'Releases Quarkus QE Test Framework'
name: 'Deploy Quarkus QE Test Framework'
description: 'Deploys Quarkus QE Test Framework'
inputs:
repository-id:
description: 'Must match a repository id present in of the POM file distributionManagement repositories'
Expand Down Expand Up @@ -33,17 +33,19 @@ runs:
run: mvn -B versions:set -DnewVersion=$NEW_FRAMEWORK_VERSION
env:
NEW_FRAMEWORK_VERSION: ${{ inputs.release-version }}
- name: Maven release ${{ inputs.release-version }}
- name: Maven deploy ${{ inputs.release-version }}
shell: bash
run: |
mvn -B -DskipTests -DskipITs \
-DretryFailedDeploymentCount=3 \
-Prelease,framework \
-Pdeploy,framework \
-Prelease=$RELEASE \
clean deploy
env:
MAVEN_USERNAME: ${{ inputs.ossrh-username }}
MAVEN_PASSWORD: ${{ inputs.ossrh-token }}
MAVEN_GPG_PASSPHRASE: ${{ inputs.gpg-passphrase }}
RELEASE: ${{ ! endsWith(inputs.release-version, 'SNAPSHOT') }}
- name: Delete Local Artifacts From Cache
shell: bash
run: rm -r ~/.m2/repository/io/quarkus/qe
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/daily-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/release
- uses: ./.github/actions/deploy
with:
repository-id: 'ossrh'
release-version: '999-SNAPSHOT'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
metadata-file-path: '.github/project.yml'
- uses: ./.github/actions/release
- uses: ./.github/actions/deploy
with:
repository-id: 'oss.sonatype'
release-version: ${{steps.metadata.outputs.current-version}}
Expand Down
26 changes: 25 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@
</build>
</profile>
<profile>
<id>release</id>
<id>deploy</id>
<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -630,6 +630,30 @@
</plugins>
</build>
</profile>
<profile>
<id>release</id>
<activation>
<property>
<name>release</name>
</property>
</activation>
<build>
<plugins>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<serverId>oss.sonatype</serverId>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<stagingProgressTimeoutMinutes>60</stagingProgressTimeoutMinutes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>run-cli-tests</id>
<activation>
Expand Down

0 comments on commit 9c9cba3

Please sign in to comment.