Skip to content

Commit

Permalink
fix:[infra] build script for gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Urban committed Sep 23, 2023
1 parent b0f7032 commit 70addda
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 17
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand All @@ -34,19 +38,19 @@ jobs:
${{ runner.os }}-node-
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Run build with Gradle Wrapper
run: ./gradlew build

with:
gradle-version: 8.2.1
- name: Install dependencies
run: npm ci

- name: Build
working-directory: frontend
run: npm run build
run: npx vite build #FIXME: replace when tsc is fixed
env:
CI_DIRECTUS_TOKEN: ${{ secrets.CI_DIRECTUS_TOKEN }}
- name: Copy Frontend distributable
run: cp -r frontend/dist src/resources
- name: Run build with Gradle Wrapper
run: ./gradlew buildFatJar

- name: Archive production artifacts
uses: actions/upload-artifact@v3
Expand Down
1 change: 0 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
versionGradle=8.2.1
development
ktor_version=2.3.2
kotlin_version=1.9.0
logback_version=1.4.8
Expand Down

0 comments on commit 70addda

Please sign in to comment.