Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finish deployment with a release for non-snapshot versions #1445

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading