Skip to content

Av 2204 java sdk generate sdk reference #191

Av 2204 java sdk generate sdk reference

Av 2204 java sdk generate sdk reference #191

Workflow file for this run

name: Pull Request
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
# branches:
# - main
jobs:
checks:
runs-on: ubuntu-latest
name: Java unit tests
steps:
- uses: actions/checkout@v3
- name: Setup Java 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'corretto'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build project
run: ./gradlew clean build
- name: Run tests
run: ./gradlew test
docs:
runs-on: ubuntu-latest
name: Docs
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- name: Setup Java 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'corretto'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build docs
run: ./gradlew dokkaHtml
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: nylas-java-sdk-reference
directory: build/dokka/html