Skip to content

Commit 9500fb2

Browse files
committed
Created release 1.0.0
1 parent d9cd593 commit 9500fb2

File tree

4 files changed

+41
-2
lines changed

4 files changed

+41
-2
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Maven Deploy
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 -DreleaseVersion=${{ 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 OSSRH Repository
21+
run: mvn deploy -DreleaseVersion=${{ 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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Maven Deploy
2-
on: [ push ]
2+
on:
3+
push:
4+
branches:
5+
- dev
36
jobs:
47
build:
58
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 library to abstractly represent structured data and convert it from and to sev
1616

1717
## Documentation
1818
You can find the current docs on our [website](https://docs.javawebstack.org/framework). 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>abstract-data</artifactId>
25+
<version>1.0.0</version>
26+
</dependency>
27+
```

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.javawebstack</groupId>
88
<artifactId>abstract-data</artifactId>
9-
<version>1.0.0-SNAPSHOT</version>
9+
<version>{{ releaseVersion }}</version>
1010

1111
<name>abstract-data</name>
1212
<description>A library to abstractly represent structured data and convert it from and to several formats</description>
@@ -37,6 +37,7 @@
3737
<properties>
3838
<maven.compiler.source>8</maven.compiler.source>
3939
<maven.compiler.target>8</maven.compiler.target>
40+
<releaseVersion>1.0.0-SNAPSHOT</releaseVersion>
4041
</properties>
4142

4243
<dependencies>

0 commit comments

Comments
 (0)