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
35 changes: 15 additions & 20 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -1,23 +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: Build on ${{ matrix.os }}
run: ./gradlew clean build
build:
# Reuse the OneLiteFeather org build workflow (Java 25, OS matrix, tests, coverage).
uses: OneLiteFeatherNET/workflows/.github/workflows/gradle-build-pr.yml@v2.4.0
with:
java-version: "25"
java-distribution: "temurin"
run-tests: true
secrets: inherit
15 changes: 7 additions & 8 deletions .github/workflows/close_invalid_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ 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.4.0
with:
protected-branch: "develop"
comment: "Please do not open pull requests from the `develop` branch, create a new branch instead."
secrets: inherit
30 changes: 0 additions & 30 deletions .github/workflows/main-build.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/publish.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/release-drafter.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: [develop]

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.4.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.9.1"
}
Empty file added CHANGELOG.md
Empty file.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = "net.onelitefeather"
version = "0.9.1"
version = "0.9.1" // x-release-please-version

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