Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Run gradle build

on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:

permissions:
contents: read

jobs:
build:
uses: qupath/actions/.github/workflows/gradle.yml@main
20 changes: 2 additions & 18 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,7 @@ on:
workflow_dispatch:

jobs:
jpackage:
name: Run JPackage
uses: ./.github/workflows/jpackage.yml

release:
needs: jpackage
build:
permissions:
contents: write
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v4

- uses: actions/download-artifact@v4

- name: Release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create --draft ${{ github.ref_name }} --title ${{ github.ref_name }} build/*.jar
uses: qupath/actions/.github/workflows/github-release.yml@main
38 changes: 0 additions & 38 deletions .github/workflows/jpackage.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/scijava-maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish release to SciJava Maven

on:
workflow_dispatch:
inputs:
release:
type: boolean
description: Whether to make a release, or if not a snapshot
required: true

jobs:
build:
name: Publish release
uses: qupath/actions/.github/workflows/scijava-maven.yml@main
secrets: inherit
with:
release: ${{ inputs.release }}
33 changes: 33 additions & 0 deletions .github/workflows/update-gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Update gradle version

on:
workflow_dispatch:
inputs:
gradle-version:
description: Gradle version
default: latest
type: string
required: false

jobs:
update:
env:
GH_TOKEN: ${{ github.token }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- name: Update gradlew
run: |
./gradlew wrapper --gradle-version ${{ inputs.gradle-version }}
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git checkout -b gradle-update
git add .
git commit --allow-empty -m "Update gradle via qupath/actions/.github/workflows/update-gradle.yml"
git push -u origin gradle-update
gh pr create --title "Update gradle via actions" --body "$(./gradlew --version)"
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pluginManagement {

// TODO: Specify which version of QuPath the extension is targeting here
qupath {
version = "0.5.1"
version = "0.6.0"
}

// Apply QuPath Gradle settings plugin to handle configuration
Expand Down