Skip to content

Update gradle/gradle-build-action action to v2.7.0 (#121) #273

Update gradle/gradle-build-action action to v2.7.0 (#121)

Update gradle/gradle-build-action action to v2.7.0 (#121) #273

Workflow file for this run

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