Skip to content

Commit 138bfa1

Browse files
authored
Merge pull request #172 from gsmet/automated-release
Switch to automated release
2 parents 3145741 + 1955779 commit 138bfa1

File tree

7 files changed

+79
-47
lines changed

7 files changed

+79
-47
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: "5.3.4"
3+
next-version: "999-SNAPSHOT"
4+

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55
branches:
66
- main
77
- '[0-9]+.[0-9]+'
8+
paths-ignore:
9+
- '.github/project.yml'
810
pull_request:
11+
paths-ignore:
12+
- '.github/project.yml'
913

1014
jobs:
1115
# This is a hack to work around a GitHub API limitation:

.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

.github/workflows/release-perform.yml

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}}

.github/workflows/release-prepare.yml

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: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ A Vert.x based Servlet implementation.
88

99
## Release
1010

11-
With Java 17:
11+
To release a new version, follow these steps:
1212

13-
```bash
14-
mvn release:prepare release:perform -Prelease -DskipTests -Darguments=-DskipTests
15-
```
13+
https://github.com/smallrye/smallrye/wiki/Release-Process#releasing
1614

1715
The staging repository is automatically closed. The sync with Maven Central should take ~30 minutes.

pom.xml

Lines changed: 4 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@
102102
<version.org.wildfly.openssl>2.2.5.Final</version.org.wildfly.openssl>
103103
<version.checkstyle>7.1</version.checkstyle>
104104

105-
<version.nexus-staging-maven-plugin>1.6.13</version.nexus-staging-maven-plugin>
106-
107105
<checkstyle.skip>true</checkstyle.skip>
108106

109107
</properties>
@@ -536,17 +534,6 @@
536534
</pluginRepository>
537535
</pluginRepositories>
538536

539-
<distributionManagement>
540-
<snapshotRepository>
541-
<id>sonatype-nexus-snapshots</id>
542-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
543-
</snapshotRepository>
544-
<repository>
545-
<id>sonatype-nexus-release</id>
546-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
547-
</repository>
548-
</distributionManagement>
549-
550537
<profiles>
551538
<profile>
552539
<id>spotbugs</id>
@@ -601,17 +588,10 @@
601588
<tagNameFormat>@{project.version}</tagNameFormat>
602589
<!-- Skip tests for now, we have a race condition in parallel(io.undertow.server.ssl.SimpleSSLTestCase) -->
603590
<arguments>-DskipTests=true</arguments>
604-
</configuration>
605-
</plugin>
606-
<plugin>
607-
<groupId>org.sonatype.plugins</groupId>
608-
<artifactId>nexus-staging-maven-plugin</artifactId>
609-
<version>${version.nexus-staging-maven-plugin}</version>
610-
<extensions>true</extensions>
611-
<configuration>
612-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
613-
<serverId>ossrh</serverId>
614-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
591+
592+
<pushChanges>false</pushChanges>
593+
<localCheckout>true</localCheckout>
594+
<remoteTagging>false</remoteTagging>
615595
</configuration>
616596
</plugin>
617597
<plugin>
@@ -641,25 +621,6 @@
641621
</execution>
642622
</executions>
643623
</plugin>
644-
<plugin>
645-
<groupId>org.apache.maven.plugins</groupId>
646-
<artifactId>maven-gpg-plugin</artifactId>
647-
<executions>
648-
<execution>
649-
<id>sign-artifacts</id>
650-
<phase>verify</phase>
651-
<goals>
652-
<goal>sign</goal>
653-
</goals>
654-
<configuration>
655-
<gpgArguments>
656-
<arg>--pinentry-mode</arg>
657-
<arg>loopback</arg>
658-
</gpgArguments>
659-
</configuration>
660-
</execution>
661-
</executions>
662-
</plugin>
663624
</plugins>
664625
</build>
665626
</profile>

0 commit comments

Comments
 (0)