Skip to content

Download jar by asset id #77

Download jar by asset id

Download jar by asset id #77

Workflow file for this run

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

Check failure on line 23 in .github/workflows/build-main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-main.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
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 }}