Added toTables for OCR #1817
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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Java CI with Gradle | |
on: | |
push: | |
workflow_dispatch: | |
#on: [push] | |
#on: | |
# push: | |
# branches: [ master ] | |
# pull_request: | |
# branches: [ master ] | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: gradle | |
# - name: Setup Gradle | |
# uses: gradle/gradle-build-action@v2 | |
- name: add binaries to path | |
run: | | |
mkdir -p "$HOME/.local/bin" | |
curl -L -o "$HOME/.local/bin/ytt" https://github.com/vmware-tanzu/carvel-ytt/releases/download/v0.41.1/ytt-linux-amd64 | |
chmod +x "$HOME/.local/bin/ytt" | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
ytt --version | |
- name: Execute Gradle build | |
run: ./gradlew build --refresh-dependencies --info | |
- name: Upload test reports | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: test-reports | |
path: "**/build/reports/*" | |
retention-days: 5 | |
- name: Set AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: us-east-2 | |
# Runs a set of commands using the runners shell | |
- name: Deploy to S3 | |
env: | |
S3_BUCKET: ${{ secrets.S3_BUCKET }} | |
DISTRIBUTION_ID: ${{ secrets.DISTRIBUTION_ID }} | |
run: | | |
aws s3 cp ./build/distributions/formkiq-core-*.zip s3://${S3_BUCKET}/formkiq-core/ |