Skip to content

Commit

Permalink
Try to fix release workflow (#21)
Browse files Browse the repository at this point in the history
* Try to fix release workflow

* Use Java 17
  • Loading branch information
louwers authored Apr 3, 2024
1 parent c7438e9 commit 81c4433
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
name: Release - Linux
name: release
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
IS_SNAPSHOT: ${{ github.ref_name != 'main' }}
on:
workflow_dispatch:
push:
tags:
- v*
branches:
- 'develop'
- '!main'

jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -22,17 +17,11 @@ jobs:
run: exit -1

- uses: actions/checkout@v3
with:
ref: ${{ env.BRANCH_NAME }}
fetch-depth: '0'

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'

- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@e6e38bacfdf1a337459f332974bb2327a31aaf4b
distribution: "temurin"
java-version: "17"

- name: Gradle Build and Test
run: |
Expand Down

0 comments on commit 81c4433

Please sign in to comment.