upgrade and fix action

This commit is contained in:
Craig Raw 2022-10-25 10:45:48 +02:00
parent c572011578
commit 7d796369d6

View file

@ -19,12 +19,6 @@ jobs:
java-version: '18.0.1' java-version: '18.0.1'
- name: Show Build Versions - name: Show Build Versions
run: ./gradlew -v run: ./gradlew -v
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle - name: Build with Gradle
run: ./gradlew jpackage run: ./gradlew jpackage
- name: Package zip distribution - name: Package zip distribution
@ -48,10 +42,10 @@ jobs:
run: ./gradlew -Djava.awt.headless=true packageTarDistribution run: ./gradlew -Djava.awt.headless=true packageTarDistribution
- name: Rename Headless Artifacts - name: Rename Headless Artifacts
if: ${{ runner.os == 'Linux' }} if: ${{ runner.os == 'Linux' }}
run: rename 's/sparrow/sparrow-server/g' build/jpackage/* run: for f in build/jpackage/sparrow*; do mv -v "$f" "${f/sparrow/sparrow-server}"; done;
- name: Upload Headless Artifact - name: Upload Headless Artifact
if: ${{ runner.os == 'Linux' }} if: ${{ runner.os == 'Linux' }}
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v3
with: with:
name: Sparrow Build - ${{ runner.os }} Headless name: Sparrow Build - ${{ runner.os }} Headless
path: | path: |