Download jar by asset id #77
This file contains hidden or 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: build | ||
on: | ||
push: | ||
branches: | ||
- master | ||
tags: | ||
- "*-[0-9]+.*" | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '8' | ||
distribution: 'zulu' | ||
cache: 'maven' | ||
- name: Download BoneJ-plus JAR from BoneJ-plus Release | ||
run: | | ||
curl -L \ | ||
-H "Authorization: Bearer ${{ secrets.BONEJ_PLUS_REPO }}" \ | ||
-o bonej-plus-0.0.3.jar \ | ||
https://github.com/bonej-org/bonej-plus/releases/download/bonej-plus-0.0.3/bonej-plus-0.0.3.jar | ||
- name: Install BoneJ-plus into local Maven repository | ||
run: | | ||
mvn install:install-file \ | ||
-Dfile=bonej-plus-0.0.3.jar \ | ||
-DgroupId=org.bonej \ | ||
-DartifactId=bonej-plus \ | ||
-Dversion=0.0.3 \ | ||
-Dpackaging=jar | ||
- name: Set up CI environment | ||
run: .github/setup.sh | ||
- name: Execute the build | ||
run: .github/build.sh | ||
env: | ||
GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }} | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
MAVEN_USER: ${{ secrets.MAVEN_USER }} | ||
MAVEN_PASS: ${{ secrets.MAVEN_PASS }} | ||
OSSRH_PASS: ${{ secrets.OSSRH_PASS }} | ||
SIGNING_ASC: ${{ secrets.SIGNING_ASC }} |