Skip to content

Commit 9b82b66

Browse files
authored
Merge pull request #60 from gsmet/automated-release
Switch to automated release
2 parents 6d29b9f + 9527719 commit 9b82b66

File tree

7 files changed

+79
-60
lines changed

7 files changed

+79
-60
lines changed

.github/project.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
release:
2+
current-version: "1.2.0"
3+
next-version: "999-SNAPSHOT"
4+

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- 'CODEOWNERS'
1010
- 'LICENSE'
1111
- 'README*'
12+
- '.github/project.yml'
1213
pull_request:
1314
paths-ignore:
1415
- '.gitignore'

.github/workflows/pre-release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Quarkus Pre Release
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '.github/project.yml'
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
pre-release:
14+
name: Pre-Release
15+
uses: quarkusio/.github/.github/workflows/pre-release.yml@main
16+
secrets: inherit
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Quarkus Perform Release
2+
run-name: Perform ${{github.event.inputs.tag || github.ref_name}} Release
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
workflow_dispatch:
8+
inputs:
9+
tag:
10+
description: 'Tag to release'
11+
required: true
12+
13+
permissions:
14+
attestations: write
15+
id-token: write
16+
contents: read
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
perform-release:
24+
name: Perform Release
25+
uses: quarkusio/.github/.github/workflows/perform-release.yml@main
26+
secrets: inherit
27+
with:
28+
version: ${{github.event.inputs.tag || github.ref_name}}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Quarkus Prepare Release
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [ closed ]
7+
paths:
8+
- '.github/project.yml'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
prepare-release:
16+
name: Prepare Release
17+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true}}
18+
uses: quarkusio/.github/.github/workflows/prepare-release.yml@main
19+
secrets: inherit
20+
with:
21+
skip_tests: true

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ The cache won't be populated otherwise.
2323

2424
You can also get some information about the generation of the cache key with `-Dorg.slf4j.simpleLogger.log.develocity.goal.fingerprint=trace`.
2525

26-
## Releasing
26+
## Release
2727

28-
```
29-
./mvnw release:prepare release:perform -Prelease
30-
```
28+
To release a new version, follow these steps:
29+
30+
https://github.com/smallrye/smallrye/wiki/Release-Process#releasing
31+
32+
The staging repository is automatically closed. The sync with Maven Central should take ~30 minutes.

pom.xml

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
<maven.compiler.release>17</maven.compiler.release>
2222
<maven.compiler.parameters>true</maven.compiler.parameters>
2323
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
24-
<nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version>
2524
<maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version>
26-
<maven-gpg-plugin.version>3.2.7</maven-gpg-plugin.version>
2725
<maven-source-plugin.version>3.3.1</maven-source-plugin.version>
2826
<maven-shade-plugin.version>3.6.0</maven-shade-plugin.version>
2927
</properties>
@@ -116,17 +114,6 @@
116114
</developer>
117115
</developers>
118116

119-
<distributionManagement>
120-
<snapshotRepository>
121-
<id>sonatype-nexus-snapshots</id>
122-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
123-
</snapshotRepository>
124-
<repository>
125-
<id>sonatype-nexus-release</id>
126-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
127-
</repository>
128-
</distributionManagement>
129-
130117
<scm>
131118
<url>https://github.com/quarkusio/quarkus-project-develocity-extension</url>
132119
<connection>scm:git:git@github.com:quarkusio/quarkus-project-develocity-extension.git</connection>
@@ -151,20 +138,10 @@
151138
<configuration>
152139
<autoVersionSubmodules>true</autoVersionSubmodules>
153140
<tagNameFormat>@{project.version}</tagNameFormat>
154-
<pushChanges>true</pushChanges>
141+
142+
<pushChanges>false</pushChanges>
155143
<localCheckout>true</localCheckout>
156-
</configuration>
157-
</plugin>
158-
<plugin>
159-
<groupId>org.sonatype.plugins</groupId>
160-
<artifactId>nexus-staging-maven-plugin</artifactId>
161-
<version>${nexus-staging-maven-plugin.version}</version>
162-
<extensions>true</extensions>
163-
<configuration>
164-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
165-
<serverId>ossrh</serverId>
166-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
167-
<keepStagingRepositoryOnCloseRuleFailure>true</keepStagingRepositoryOnCloseRuleFailure>
144+
<remoteTagging>false</remoteTagging>
168145
</configuration>
169146
</plugin>
170147
<plugin>
@@ -199,36 +176,6 @@
199176
</execution>
200177
</executions>
201178
</plugin>
202-
<plugin>
203-
<!--
204-
## IMPORTANT ##
205-
In your ~/.m2/settings.xml you need to add and edit the following profile:
206-
<profile>
207-
<id>release</id>
208-
<properties>
209-
<gpg.useagent>false</gpg.useagent>
210-
<gpg.executable>/usr/local/Cellar/gnupg@1.4/1.4.23_1/bin/gpg1</gpg.executable> <- use gpg1 on Mac OS X <gpg.homedir>~/.gnupg</gpg.homedir> <- Update to your own directory <gpg.passphrase>******</gpg.passphrase> <- Add your passphrase </properties>
211-
</profile>
212-
-->
213-
<groupId>org.apache.maven.plugins</groupId>
214-
<artifactId>maven-gpg-plugin</artifactId>
215-
<version>${maven-gpg-plugin.version}</version>
216-
<executions>
217-
<execution>
218-
<id>sign-artifacts</id>
219-
<phase>verify</phase>
220-
<goals>
221-
<goal>sign</goal>
222-
</goals>
223-
<configuration>
224-
<gpgArguments>
225-
<arg>--pinentry-mode</arg>
226-
<arg>loopback</arg>
227-
</gpgArguments>
228-
</configuration>
229-
</execution>
230-
</executions>
231-
</plugin>
232179
</plugins>
233180
</build>
234181
</profile>

0 commit comments

Comments
 (0)