Skip to content

Commit 434b997

Browse files
authored
Update the build script to work with the builder directory. (#6)
* Update the build script to work with the builder directory. * Ensure that the gradlew script is executable.
1 parent 8a7f47d commit 434b997

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

.github/workflows/default.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,17 @@ on:
1010

1111
jobs:
1212
build:
13-
uses: ./.github/workflows/build-node.yml
13+
uses: ./.github/workflows/build-node.yml
14+
bundle:
15+
runs-on: ubuntu-latest
16+
needs: build
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Configure Java version
20+
uses: actions/setup-java@v3
21+
with:
22+
java-version: '21'
23+
distribution: 'temurin'
24+
architecture: x64
25+
- name: Create JAR bundle
26+
run: ./builder/gradlew -b builder/build.gradle.kts jar

.github/workflows/release-build.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@ jobs:
2222
distribution: 'temurin'
2323
architecture: x64
2424
- name: Create JAR bundle
25-
run: |
26-
cd builder
27-
./gradlew jar
25+
run: ./builder/gradlew -b builder/build.gradle.kts jar
2826
- name: Publish artifacts
2927
run: |
30-
cd builder
3128
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
3229
echo "New version: ${NEW_VERSION}"
3330
echo "Github username: ${GITHUB_ACTOR}"
34-
./gradlew -Pversion=${NEW_VERSION} publish -x check
31+
./builder/gradlew -b builder/build.gradle.kts -Pversion=${NEW_VERSION} publish -x check
3532
env:
3633
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

builder/gradlew

100644100755
File mode changed.

0 commit comments

Comments
 (0)