language: java
jdk:
  - oraclejdk8

script:
  - unzip bin/lib.zip -d lambda-selenium-node/lib
  - unzip bin/node_modules.zip -d lambda-selenium-node/node_modules
  - zip -r node_lambda_function.zip lambda-selenium-node/*
  - unzip bin/lib.zip -d lambda-selenium-java/src/main/resources
  - cd lambda-selenium-java
  - gradle clean shadowJar
  - mv build/libs/lambda-selenium-all.jar ../java_lambda_function.zip
  - cd ../
  
deploy:
  provider: releases
  api_key: $github_token
  file:
    - "node_lambda_function.zip"
    - "java_lambda_function.zip"
  skip_cleanup: true
  on:
    tags: true

language: java
jdk:
  - oraclejdk8

script:
  - unzip bin/lib.zip -d lambda-selenium-node/lib
  - unzip bin/node_modules.zip -d lambda-selenium-node/node_modules
  - zip -r node_lambda_function.zip lambda-selenium-node/*
  - unzip bin/lib.zip -d lambda-selenium-java/src/main/resources/lib
  - cd lambda-selenium-java
  - gradle clean shadowJar
  - mv build/libs/lambda-selenium-all.jar ../java_lambda_function.zip
  - cd ../
  
deploy:
  provider: releases
  api_key: $github_token
  file:
    - "node_lambda_function.zip"
    - "java_lambda_function.zip"
  skip_cleanup: true
  on:
    tags: true

Adjust unzip location for binaries in java project
Adjust unzip location for binaries in java project
