Release Droid - Prepare Original Checksum #53
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Droid - Prepare Original Checksum | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDKs | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: | | |
11 | |
17 | |
cache: "maven" | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.21" | |
- name: Cache Go modules | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cache/go-build | |
~/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Install Go tools | |
run: go install github.com/google/[email protected] | |
- name: Run tests and build with Maven | |
run: mvn --batch-mode clean verify install | |
- name: Prepare checksum | |
run: find target -maxdepth 1 -name *.jar -exec sha256sum "{}" + > original_checksum | |
- name: Upload checksum to the artifactory | |
uses: actions/upload-artifact@v3 | |
with: | |
name: original_checksum | |
retention-days: 5 | |
path: original_checksum |