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
24 changes: 4 additions & 20 deletions .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
name: Build PR
on: [pull_request]

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@v6
- name: Setup Java
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: 25
- name: Build on ${{ matrix.os }}
run: ./gradlew clean build
build:
uses: OneLiteFeatherNET/workflows/.github/workflows/gradle-build-pr.yml@2.0.1
secrets: inherit
14 changes: 5 additions & 9 deletions .github/workflows/close_invalid_prs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
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.0.1
with:
protected-branch: master
30 changes: 0 additions & 30 deletions .github/workflows/main-build.yml

This file was deleted.

25 changes: 5 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
name: Publish JAR

on:
push:
tags:
- '**'
tags: ["**"]

jobs:
build:
runs-on: ubuntu-latest
env:
ONELITEFEATHER_MAVEN_USERNAME: ${{ secrets.ONELITEFEATHER_MAVEN_USERNAME }}
ONELITEFEATHER_MAVEN_PASSWORD: ${{ secrets.ONELITEFEATHER_MAVEN_PASSWORD }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '25'
- name: Build with Gradle
run: ./gradlew build
- name: Publish to Maven
run: ./gradlew publish
publish:
uses: OneLiteFeatherNET/workflows/.github/workflows/gradle-publish.yml@v2.0.1
secrets: inherit
24 changes: 0 additions & 24 deletions .github/workflows/release-drafter.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: release-please
on:
push:
branches: [master]

permissions:
contents: write
pull-requests: write

jobs:
release:
uses: OneLiteFeatherNET/workflows/.github/workflows/release-please.yml@v2.0.1