Skip to content

Commit 9821b73

Browse files
committed
Revert "feat(workflows): migrate to our new workflow preset (#73)"
1 parent e4e52a7 commit 9821b73

6 files changed

Lines changed: 103 additions & 28 deletions

File tree

.github/workflows/build-pr.yml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,23 @@
11
name: Build PR
22
on: [pull_request]
3-
43
jobs:
5-
build:
6-
uses: OneLiteFeatherNET/workflows/.github/workflows/gradle-build-pr.yml@v2.1.0
7-
secrets: inherit
4+
build_pr:
5+
if: github.repository_owner == 'OneLiteFeatherNET'
6+
name: Build Pull Request Branch
7+
runs-on: ${{ matrix.os }}
8+
env:
9+
ONELITEFEATHER_MAVEN_USERNAME: ${{ secrets.ONELITEFEATHER_MAVEN_USERNAME }}
10+
ONELITEFEATHER_MAVEN_PASSWORD: ${{ secrets.ONELITEFEATHER_MAVEN_PASSWORD }}
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, windows-latest, macos-latest]
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v6
17+
- name: Setup Java
18+
uses: actions/setup-java@v5
19+
with:
20+
distribution: temurin
21+
java-version: 25
22+
- name: Build on ${{ matrix.os }}
23+
run: ./gradlew clean build
Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Close invalid PRs
2+
23
on:
34
pull_request_target:
4-
types: [opened]
5+
types: [ opened ]
56

67
jobs:
7-
close:
8-
uses: OneLiteFeatherNET/workflows/.github/workflows/close-invalid-prs.yml@v2.1.0
9-
with:
10-
protected-branch: master
8+
run:
9+
if: ${{ github.repository != github.event.pull_request.head.repo.full_name && github.head_ref == 'develop' }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: superbrothers/close-pull-request@v3
13+
with:
14+
comment: "Please do not open pull requests from the `develop` branch, create a new branch instead."

.github/workflows/main-build.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Main Branch Build
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
jobs:
9+
build_and_test:
10+
if: github.repository_owner == 'OneLiteFeatherNET'
11+
name: Build and Test
12+
runs-on: ${{ matrix.os }}
13+
env:
14+
ONELITEFEATHER_MAVEN_USERNAME: ${{ secrets.ONELITEFEATHER_MAVEN_USERNAME }}
15+
ONELITEFEATHER_MAVEN_PASSWORD: ${{ secrets.ONELITEFEATHER_MAVEN_PASSWORD }}
16+
strategy:
17+
matrix:
18+
os: [ubuntu-latest, windows-latest, macos-latest]
19+
steps:
20+
- name: Checkout Repository
21+
uses: actions/checkout@v6
22+
- name: Validate Gradle Wrapper
23+
uses: gradle/actions/wrapper-validation@v6
24+
- name: Setup Java
25+
uses: actions/setup-java@v5
26+
with:
27+
distribution: temurin
28+
java-version: 25
29+
- name: Build on ${{ matrix.os }}
30+
run: ./gradlew test

.github/workflows/publish.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,24 @@
11
name: Publish JAR
2+
23
on:
34
push:
4-
tags: ["**"]
5-
workflow_dispatch:
6-
5+
tags:
6+
- '**'
77
jobs:
8-
publish:
9-
uses: OneLiteFeatherNET/workflows/.github/workflows/gradle-publish.yml@v2.1.0
10-
secrets: inherit
8+
build:
9+
runs-on: ubuntu-latest
10+
env:
11+
ONELITEFEATHER_MAVEN_USERNAME: ${{ secrets.ONELITEFEATHER_MAVEN_USERNAME }}
12+
ONELITEFEATHER_MAVEN_PASSWORD: ${{ secrets.ONELITEFEATHER_MAVEN_PASSWORD }}
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v6
16+
- name: Set up JDK 25
17+
uses: actions/setup-java@v5
18+
with:
19+
distribution: 'temurin'
20+
java-version: '25'
21+
- name: Build with Gradle
22+
run: ./gradlew build
23+
- name: Publish to Maven
24+
run: ./gradlew publish
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: draft release
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- main
7+
- develop
8+
pull_request:
9+
types: [opened, reopened, synchronize]
10+
pull_request_target:
11+
types: [opened, reopened, synchronize]
12+
permissions:
13+
contents: read
14+
jobs:
15+
update_release_draft:
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }}
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: release-drafter/release-drafter@v7
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release-please.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)