Skip to content

Commit

Permalink
Add manual release to ImageJ action (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilmelnikov authored Jun 28, 2023
1 parent 5bead03 commit 7383714
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Release to Update Site

on:
workflow_dispatch:
inputs:
version:
description: Plugin version
required: true
type: string

jobs:
build_release:
runs-on: ubuntu-latest

environment:
name: release
url: https://sites.imagej.net/Ilastik/plugins/

steps:
- name: Install ImageJ/Fiji
run: |
curl --silent --remote-name https://downloads.imagej.net/fiji/latest/fiji-linux64.zip
unzip fiji-linux64.zip
./Fiji.app/ImageJ-linux64 --headless --update edit-update-site ilastik https://sites.imagej.net/Ilastik/ "webdav:ilastik-ci:${{ secrets.UPDATE_PASS }}" .
- name: Download plugin JAR into ImageJ/Fiji
run: curl \
--silent \
--remote-name https://maven.scijava.org/content/repositories/releases/org/ilastik/ilastik4ij/${{ inputs.version }}/ilastik4ij-${{ inputs.version }}.jar \
--output-dir ./Fiji.app/jars

- name: Release to ImageJ update site
run: ./Fiji.app/ImageJ-linux64 --headless --update upload-complete-site --force ilastik

0 comments on commit 7383714

Please sign in to comment.