forked from wershofe/TWOMBLI
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from FrancisCrickInstitute/release-automation
Create release.yml
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Release to Update Site | ||
|
||
on: | ||
push: | ||
branches: [master] # Trigger the workflow on push to the master branch | ||
|
||
jobs: | ||
build_release: | ||
runs-on: ubuntu-latest | ||
env: | ||
IJ_DOWNLOAD_URL: https://downloads.imagej.net/fiji/latest/fiji-linux64.zip | ||
WIKI_USER: ${{ secrets.UPDATE_USER }} | ||
UPDATE_PASS: ${{ secrets.UPDATE_PASS }} # DO NOT WRITE your password here | ||
UPDATE_SITE: TWOMBLI | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build with Maven | ||
run: mvn -B package | ||
- 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 install -Dscijava.app.directory=./Fiji.app -Ddelete.other.versions=true -Dscijava.ignoreDependencies=true | ||
- name: Release to ImageJ update site | ||
run: | | ||
./Fiji.app/ImageJ-linux64 --headless --update upload-complete-site --force ${UPDATE_SITE} |