Skip to content

Commit 3666b99

Browse files
committed
update README.md
1 parent cbcf438 commit 3666b99

4 files changed

Lines changed: 38 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
name: Java CI
1+
name: build
22

3-
on:
4-
release:
5-
types: [created]
3+
on: [push]
64

75
jobs:
86
build:
@@ -14,15 +12,5 @@ jobs:
1412
with:
1513
java-version: '11'
1614
distribution: 'adopt'
17-
server-id: ossrh
18-
server-username: MAVEN_USERNAME
19-
server-password: MAVEN_PASSWORD
20-
- name: Install gpg secret key
21-
run: |
22-
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
23-
gpg --list-secret-keys --keyid-format LONG
2415
- name: Build with Maven
25-
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} deploy
26-
env:
27-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
28-
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
16+
run: mvn --batch-mode package

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up JDK 11
13+
uses: actions/setup-java@v2
14+
with:
15+
java-version: '11'
16+
distribution: 'adopt'
17+
server-id: ossrh
18+
server-username: MAVEN_USERNAME
19+
server-password: MAVEN_PASSWORD
20+
- name: Install gpg secret key
21+
run: |
22+
cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
23+
gpg --list-secret-keys --keyid-format LONG
24+
- name: Build with Maven
25+
run: mvn --batch-mode -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} deploy
26+
env:
27+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
28+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
![build workflow](https://github.com/PigumerGroup/openapi-archetype/actions/workflows/build.yml/badge.svg)
2+
![release workflow](https://github.com/PigumerGroup/openapi-archetype/actions/workflows/release.yml/badge.svg)
23

34
Project creation
45
================
@@ -9,10 +10,14 @@ Project creation
910
$ mvn archetype:generate \
1011
-DarchetypeGroupId=com.pigumer.tools.archetype \
1112
-DarchetypeArtifactId=openapi-archetype \
12-
-DarchetypeVersion=0.2.0 \
13+
-DarchetypeVersion=0.2.0-SNAPSHOT \
1314
-DgroupId=com.pigumer.example-service \
1415
-DartifactId=example-service-generated-modules \
1516
-DserviceId=example \
1617
-Dversion=0.1.0 \
1718
-Dpackage=com.pigumer.example
1819
```
20+
21+
# Reference
22+
23+
* [openapi-generator-util](https://github.com/takesection/openapi-generator-util)

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.pigumer.tools.archetype</groupId>
66
<artifactId>openapi-archetype</artifactId>
7-
<version>0.2.0</version>
7+
<version>0.2.0-SNAPSHOT</version>
88
<packaging>maven-archetype</packaging>
99

1010
<name>openapi-archetype</name>

0 commit comments

Comments
 (0)