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
37 changes: 15 additions & 22 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
name: Build PR

on: [pull_request]

permissions:
contents: read
checks: write
pull-requests: write

jobs:
build_pr:
if: github.repository_owner == 'OneLiteFeatherNET'
name: Build Pull Request Branch
runs-on: ${{ matrix.os }}
env:
ONELITEFEATHER_MAVEN_USERNAME: ${{ secrets.ONELITEFEATHER_MAVEN_USERNAME }}
ONELITEFEATHER_MAVEN_PASSWORD: ${{ secrets.ONELITEFEATHER_MAVEN_PASSWORD }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v7
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 25
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Build on ${{ matrix.os }}
run: ./gradlew clean build test
build:
# Reuse the OneLiteFeather org build workflow (Java 25, OS matrix, tests, coverage).
uses: OneLiteFeatherNET/workflows/.github/workflows/gradle-build-pr.yml@v2.3.0
with:
java-version: "25"
java-distribution: "temurin"
run-tests: true
secrets: inherit
12 changes: 4 additions & 8 deletions .github/workflows/close_invalid_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,9 @@ name: Close invalid PRs

on:
pull_request_target:
types: [ opened ]
types: [opened]

jobs:
run:
if: ${{ github.repository != github.event.pull_request.head.repo.full_name && github.head_ref == 'develop' }}
runs-on: ubuntu-latest
steps:
- uses: superbrothers/close-pull-request@v3
with:
comment: "Please do not open pull requests from the `develop` branch, create a new branch instead."
close:
uses: OneLiteFeatherNET/workflows/.github/workflows/close-invalid-prs.yml@v2.3.0
secrets: inherit
31 changes: 0 additions & 31 deletions .github/workflows/main-build.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release

on:
push:
branches: [main]

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
version: ${{ steps.release.outputs.version }}
steps:
- name: Run release-please
id: release
uses: googleapis/release-please-action@v5
with:
config-file: release-please-config.json
manifest-file: .release-please-manifest.json

publish:
name: Publish to OneLiteFeatherRepo
needs: release-please
if: needs.release-please.outputs.release_created == 'true'
uses: OneLiteFeatherNET/workflows/.github/workflows/gradle-publish.yml@v2.3.0
with:
java-version: "25"
publish-task: "publish"
secrets: inherit
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.5.0"
}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = "net.theevilreaper"
version = "0.0.1"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to add a comment with: // x-release-please-version

version = "0.5.0" // x-release-please-version
description = "Bounce"

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ plugins {
java
}

group = "net.theevilreaper"
version = "0.0.1"

java {
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

org.gradle.configuration-cache=true

group = net.theevilreaper
18 changes: 18 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "simple",
"include-component-in-tag": false,
"include-v-in-tag": true,
"pull-request-header": "",
"bootstrap-sha": "4838662c0ce839002d7d9106690e06d0f82a8284",
"packages": {
".": {
"package-name": "bounce",
"release-type": "java",
"changelog-path": "CHANGELOG.md",
"extra-files": [
{ "type": "generic", "path": "build.gradle.kts" }
]
}
}
}
Loading