Rest Clients build #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rest Clients build | |
on: | |
workflow_dispatch: {} | |
permissions: | |
contents: read | |
jobs: | |
build-clients: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install openapi generator | |
run: npm install @openapitools/openapi-generator-cli | |
- name: Build clients | |
working-directory: clients | |
run: ./build-clients.sh | |
- name: Java client tests | |
working-directory: clients/java | |
run: ./gradlew clean build | |
- name: Publish java client | |
env: | |
OSSRH_JIRA_USERNAME: ${{ secrets.OSSRH_JIRA_USERNAME }} | |
OSSRH_JIRA_PASSWORD: ${{ secrets.OSSRH_JIRA_PASSWORD }} | |
working-directory: clients | |
run: ./publish-java-client.sh |