Skip to content

Commit befa705

Browse files
authored
Merge pull request #4 from automated-a11y/release/1.0-SNAPSHOT
Release 1.0 snapshot
2 parents 841df66 + 2325617 commit befa705

File tree

3 files changed

+162
-1
lines changed

3 files changed

+162
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on:
55
- main
66
pull_request:
77
types: [ opened, synchronize, reopened ]
8+
89
jobs:
9-
build:
10+
test:
1011
name: Unit tests and Coverage
1112
runs-on: ubuntu-latest
1213
steps:

.github/workflows/release.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Publish and Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
name: Publish to Maven
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Set up Java
16+
uses: actions/setup-java@v3
17+
with:
18+
distribution: 'temurin'
19+
java-version: 11
20+
cache: 'maven'
21+
server-id: ossrh
22+
server-username: MAVEN_USERNAME
23+
server-password: MAVEN_PASSWORD
24+
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
25+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
26+
- name: Maven Cache
27+
uses: actions/cache@v3
28+
with:
29+
path: ~/.m2
30+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
31+
restore-keys: ${{ runner.os }}-m2
32+
- name: Deploy
33+
run: mvn deploy -DskipTests
34+
env:
35+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
36+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
37+
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
38+
release:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v3
43+
- name: Build
44+
run: mvn clean package -DskipTests
45+
- name: Release
46+
uses: softprops/action-gh-release@v1
47+
with:
48+
token: ${{ secrets.GH_TOKEN }}
49+
files: "target/*.jar"

pom.xml

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,39 @@
2020
<annotation.version>1.3.2</annotation.version>
2121
<surefire.version>3.0.0-M5</surefire.version>
2222
<jacoco.version>0.8.8</jacoco.version>
23+
<mavenshadeplugin.version>3.2.1</mavenshadeplugin.version>
24+
<nexusstagingplugin.version>1.6.13</nexusstagingplugin.version>
25+
<gpgplugin.version>3.0.1</gpgplugin.version>
26+
<javadocplugin.version>3.4.1</javadocplugin.version>
27+
<mavensourceplugin.version>3.2.1</mavensourceplugin.version>
2328
</properties>
2429

30+
<name>Java a11y Playwright</name>
31+
<description>Accessibility Automation for Web Apps with Java and Playwright</description>
32+
<url>https://github.com/automated-a11y/java-a11y-playwright</url>
33+
34+
<licenses>
35+
<license>
36+
<name>MIT License</name>
37+
<url>http://www.opensource.org/licenses/mit-license.php</url>
38+
</license>
39+
</licenses>
40+
41+
<developers>
42+
<developer>
43+
<name>Sridhar Bandi</name>
44+
<email>sridhar.bandi.ece@gmail.com</email>
45+
<organization>io.github.sridharbandi</organization>
46+
<organizationUrl>https://github.com/sridharbandi</organizationUrl>
47+
</developer>
48+
</developers>
49+
50+
<scm>
51+
<connection>scm:git:git://github.com/automated-a11y/java-a11y-playwright.git</connection>
52+
<developerConnection>scm:git:ssh://github.com:automated-a11y/java-a11y-playwright.git</developerConnection>
53+
<url>http://github.com/automated-a11y/java-a11y-playwright/tree/main</url>
54+
</scm>
55+
2556
<dependencies>
2657
<dependency>
2758
<groupId>com.microsoft.playwright</groupId>
@@ -62,6 +93,76 @@
6293
</dependencies>
6394
<build>
6495
<plugins>
96+
<plugin>
97+
<groupId>org.sonatype.plugins</groupId>
98+
<artifactId>nexus-staging-maven-plugin</artifactId>
99+
<version>${nexusstagingplugin.version}</version>
100+
<extensions>true</extensions>
101+
<configuration>
102+
<serverId>ossrh</serverId>
103+
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
104+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
105+
</configuration>
106+
</plugin>
107+
<plugin>
108+
<groupId>org.apache.maven.plugins</groupId>
109+
<artifactId>maven-source-plugin</artifactId>
110+
<version>${mavensourceplugin.version}</version>
111+
<executions>
112+
<execution>
113+
<id>attach-sources</id>
114+
<goals>
115+
<goal>jar-no-fork</goal>
116+
</goals>
117+
</execution>
118+
</executions>
119+
</plugin>
120+
<plugin>
121+
<groupId>org.apache.maven.plugins</groupId>
122+
<artifactId>maven-javadoc-plugin</artifactId>
123+
<version>${javadocplugin.version}</version>
124+
<executions>
125+
<execution>
126+
<id>attach-javadocs</id>
127+
<goals>
128+
<goal>jar</goal>
129+
</goals>
130+
</execution>
131+
</executions>
132+
</plugin>
133+
<plugin>
134+
<groupId>org.apache.maven.plugins</groupId>
135+
<artifactId>maven-gpg-plugin</artifactId>
136+
<version>${gpgplugin.version}</version>
137+
<executions>
138+
<execution>
139+
<id>sign-artifacts</id>
140+
<phase>verify</phase>
141+
<goals>
142+
<goal>sign</goal>
143+
</goals>
144+
<configuration>
145+
<gpgArguments>
146+
<arg>--pinentry-mode</arg>
147+
<arg>loopback</arg>
148+
</gpgArguments>
149+
</configuration>
150+
</execution>
151+
</executions>
152+
</plugin>
153+
<plugin>
154+
<groupId>org.apache.maven.plugins</groupId>
155+
<artifactId>maven-shade-plugin</artifactId>
156+
<version>${mavenshadeplugin.version}</version>
157+
<executions>
158+
<execution>
159+
<phase>package</phase>
160+
<goals>
161+
<goal>shade</goal>
162+
</goals>
163+
</execution>
164+
</executions>
165+
</plugin>
65166
<plugin>
66167
<groupId>org.apache.maven.plugins</groupId>
67168
<artifactId>maven-surefire-plugin</artifactId>
@@ -98,4 +199,14 @@
98199
</plugins>
99200
</build>
100201

202+
<distributionManagement>
203+
<snapshotRepository>
204+
<id>ossrh</id>
205+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
206+
</snapshotRepository>
207+
<repository>
208+
<id>ossrh</id>
209+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
210+
</repository>
211+
</distributionManagement>
101212
</project>

0 commit comments

Comments
 (0)