Skip to content

Commit e9e1db1

Browse files
committed
Updated deployment
1 parent 4062277 commit e9e1db1

File tree

4 files changed

+43
-7
lines changed

4 files changed

+43
-7
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Maven Deploy Release
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Set up JDK 1.8
11+
uses: actions/setup-java@v1
12+
with:
13+
java-version: 1.8
14+
- name: Build
15+
run: mvn -B -DbuildVersion=${{ github.event.release.tag_name }} package --file pom.xml
16+
- name: Install GPG Key
17+
run: echo -e "$GPG_PRIVATE_KEY" | gpg --import --no-tty --batch --yes
18+
env:
19+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
20+
- name: Deploy to JavaWebStack Repository
21+
run: mvn deploy -DbuildVersion=${{ github.event.release.tag_name }} -s build/settings.xml
22+
env:
23+
DEPLOYMENT_USERNAME: ${{ secrets.DEPLOYMENT_USERNAME }}
24+
DEPLOYMENT_PASSWORD: ${{ secrets.DEPLOYMENT_PASSWORD }}
25+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
26+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

.github/workflows/maven-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Maven Deploy
22
on:
33
push:
44
branches:
5-
- master
5+
- dev
66
jobs:
77
build:
88
runs-on: ubuntu-latest

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@ A validation library allowing to deep-validate data structures
1616

1717
## Documentation
1818
You can find the current docs on our [website](https://docs.javawebstack.org/framework/validator). This is a work-in-progress project though so it's not yet complete.
19+
20+
## Maven
21+
```xml
22+
<dependency>
23+
<groupId>org.javawebstack</groupId>
24+
<artifactId>validator</artifactId>
25+
<version>1.0.0</version>
26+
</dependency>
27+
```

pom.xml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7+
<properties>
8+
<maven.compiler.source>8</maven.compiler.source>
9+
<maven.compiler.target>8</maven.compiler.target>
10+
<buildVersion>1.0.0-SNAPSHOT</buildVersion>
11+
</properties>
12+
713
<groupId>org.javawebstack</groupId>
814
<artifactId>validator</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
15+
<version>${buildVersion}</version>
1016

1117
<name>validator</name>
1218
<description>Request Validation Library</description>
@@ -34,11 +40,6 @@
3440
<url>https://github.com/JavaWebStack/validator/tree/master</url>
3541
</scm>
3642

37-
<properties>
38-
<maven.compiler.source>8</maven.compiler.source>
39-
<maven.compiler.target>8</maven.compiler.target>
40-
</properties>
41-
4243
<repositories>
4344
<repository>
4445
<id>javawebstack</id>

0 commit comments

Comments
 (0)