Skip to content

Commit

Permalink
chore(ci): revert to proper conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
xeruf committed Jul 1, 2024
1 parent b132b3d commit f28db69
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,22 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ matrix.os }}-gradle-${{ hashFiles('**/*.gradle') }}
key: ${{ matrix.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: ${{ matrix.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Execute tests
run: ./gradlew check
- name: Assemble fat jar
run: ./gradlew shadowJar
- name: Upload jars as artifact
- name: Upload jar as artifact
uses: actions/upload-artifact@v4
with:
name: software-challenge-gui-${{ github.sha }}-${{ matrix.os }}
path: build/*.jar
build-arm:
runs-on: ${{ matrix.os }}
#if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
strategy:
matrix:
os: [macos-latest-large]
Expand All @@ -62,15 +62,15 @@ jobs:
run: chmod +x gradlew
- name: Assemble fat jar
run: ./gradlew shadowJar
- name: Upload jars as artifact
- name: Upload jar as artifact
uses: actions/upload-artifact@v4
with:
name: software-challenge-gui-${{ github.sha }}-${{ matrix.os }}
path: build/*.jar
release:
needs: [build, build-arm]
runs-on: ubuntu-latest
#if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v4 # https://github.com/actions/download-artifact
with:
Expand Down

0 comments on commit f28db69

Please sign in to comment.