-
Notifications
You must be signed in to change notification settings - Fork 1
62 lines (51 loc) · 2.21 KB
/
publish_N5_plugin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Release to Update Site
# https://imagej.net/update-sites/automatic-uploads
# https://github.com/saalfeldlab/n5-ij/tree/master/.github
# https://imagej.net/update-sites/setup#creating-a-hosted-update-site
on:
workflow_dispatch:
inputs:
module:
description: Module to deploy as an ImageJ plugin
required: true
default: 'view-simulation-results'
username:
description: Username of IJ user deploying
required: true
default: 'vcell'
password:
description: Password for the user deploying
required: true
update_site:
description: The endpoint which hosts the available plugin
required: true
default: 'VCell-Simulations-Result-Viewer'
jobs:
build_release:
runs-on: ubuntu-latest
env:
IJ_DOWNLOAD_URL: https://downloads.imagej.net/fiji/latest/fiji-linux64.zip
WIKI_USER: ${{ github.event.inputs.username }}
UPDATE_PASS: ${{ secrets.VCELL_UPLOAD_PASSWORD }}
UPDATE_SITE: ${{ github.event.inputs.update_site }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: 'mvn -B -pl org.vcell.vcellfiji:${{ github.event.inputs.module }} -DskipTests=True package' # Skip tests, cause for concern see if there is way to do some form of composition with workflows
- name: Install ImageJ/Fiji
run: |
curl --silent -O ${IJ_DOWNLOAD_URL}
unzip fiji-linux64.zip
./Fiji.app/ImageJ-linux64 --headless --update edit-update-site ${UPDATE_SITE} https://sites.imagej.net/${UPDATE_SITE}/ "webdav:${WIKI_USER}:${UPDATE_PASS}" .
- name: Install in ImageJ/Fiji (with Maven)
run: mvn -B -pl org.vcell.vcellfiji:${{ github.event.inputs.module }} install -Dscijava.app.directory=./Fiji.app -Ddelete.other.versions=true -Dscijava.ignoreDependencies=true -DskipTests=True #Skip tests
- name: Release to ImageJ update site
run: |
./Fiji.app/ImageJ-linux64 --headless --update upload-complete-site --force ${UPDATE_SITE}