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
10 changes: 10 additions & 0 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: Make draft release

on:
workflow_dispatch:

jobs:
build:
permissions:
contents: write
uses: qupath/actions/.github/workflows/github-release.yml@main
42 changes: 0 additions & 42 deletions .github/workflows/gradle.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/publish-release.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/publish-snapshot.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: Should this be a release? (if not, do 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)"