Skip to content

Commit

Permalink
Some api description fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierapivideo authored Jun 7, 2021
1 parent c89b4b8 commit 334e444
Show file tree
Hide file tree
Showing 46 changed files with 271 additions and 208 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Java package to Maven Central Repository
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Maven Central Repository
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Install gpg secret key
run: |
cat <(echo -e "${{ secrets.GPG_SECRET_KET }}") | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish to Central Repository
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
run: |
mvn --no-transfer-progress --batch-mode -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" deploy
18 changes: 18 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Run unit tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
java: ['8.0', '11.0', '13.0']
steps:
- uses: actions/checkout@v2
- name: Setup Java ${{ matrix.java }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.java }}
distribution: 'adopt'
- name: Test
run: |
mvn package test
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ build
.idea
.openapi-generator/
git_push.sh
*.iml
*.iml
.openapi-generator-ignore
build.sbt
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>video.api</groupId>
<artifactId>java-api-client</artifactId>
<version>1.0.4</version>
<version>1.0.5</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -33,7 +33,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "video.api:java-api-client:1.0.4"
compile "video.api:java-api-client:1.0.5"
```

### Others
Expand All @@ -46,7 +46,7 @@ mvn clean package

Then manually install the following JARs:

* `target/java-api-client-1.0.4.jar`
* `target/java-api-client-1.0.5.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down
Loading

0 comments on commit 334e444

Please sign in to comment.