Skip to content

Commit

Permalink
Github gradle.yml: Generate/upload artifacts and SHA256SUM
Browse files Browse the repository at this point in the history
  • Loading branch information
msgilligan committed Oct 4, 2023
1 parent 2c86c44 commit e4d1023
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,22 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build with Gradle
run: ./gradlew buildCI --scan --info --stacktrace
run: ./gradlew buildCI installDist --scan --info --stacktrace
- name: Generate SHA256SUMS (Linux)
run: sha256sum artifacts/*/* > SHA256SUMS
working-directory: ./build
if: runner.os == 'Linux'
- name: Generate SHA256SUMS (macOS)
run: shasum -a 256 artifacts/*/* > SHA256SUMS
working-directory: ./build
if: runner.os == 'macOS'
- name: Upload SHA256SUMS
uses: actions/upload-artifact@v3
with:
name: SHA256SUMS-${{ matrix.os }}-${{ matrix.java }}
path: build/SHA256SUMS
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts-${{ matrix.os }}-${{ matrix.java }}
path: build/artifacts

0 comments on commit e4d1023

Please sign in to comment.