Skip to content

Commit

Permalink
Upgrade gradle build action.
Browse files Browse the repository at this point in the history
  • Loading branch information
kunyavskiy committed Feb 24, 2024
1 parent 01b834c commit 6d610d5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,30 @@ jobs:
name: Create artifacts from master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v3
- name: Checkout
uses: actions/checkout@master

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'src/frontend/package-lock.json'
- uses: actions/setup-java@master

- name: Setup Java
uses: actions/setup-java@master
with:
distribution: adopt
java-version: 17

- uses: gradle/gradle-build-action@v2
with:
arguments: release --scan -Pnpm.download=false -Pbuild_version=${{ github.event.inputs.version }} -i
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build with gradle
run: ./gradlew release --scan -Pnpm.download=false -Pbuild_version=${{ github.event.inputs.version }} -i

- uses: actions/upload-artifact@master
- name: Upload artifacts
uses: actions/upload-artifact@master
with:
name: artifacts
path: artifacts
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ jobs:
distribution: adopt
java-version: 17

- uses: gradle/[email protected]
with:
arguments: build release apiCheck --scan -Pnpm.download=false -i
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build with gradle
run: ./gradlew build release apiCheck --scan -Pnpm.download=false -i

- uses: actions/upload-artifact@v3
if: always()
Expand Down

0 comments on commit 6d610d5

Please sign in to comment.