Set gradlew executable #271
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: CI | |
on: [ push ] | |
env: | |
APP_JAVA_VERSION: 20 | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ env.APP_JAVA_VERSION }} | |
- name: Build project | |
uses: gradle/[email protected] | |
with: | |
arguments: | | |
check | |
build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: shadow-jar | |
path: build/libs/filesecure-shaded.jar | |
dropbox: | |
name: Deploy Dropbox | |
concurrency: dropbox | |
runs-on: ubuntu-latest | |
needs: build | |
if: contains('refs/heads/main', github.ref) | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: shadow-jar | |
- name: Deploy on Dropbox | |
uses: deka0106/[email protected] | |
with: | |
dropbox_access_token: ${{ secrets.DROPBOX_DEPLOY_TOKEN }} | |
src: "filesecure-shaded.jar" | |
dest: "/Documents/JARs/FileSecure.jar" | |
mode: overwrite |