Skip to content

Commit 80f25f8

Browse files
committed
update workflows
1 parent 522752d commit 80f25f8

7 files changed

Lines changed: 107 additions & 104 deletions

File tree

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ko_fi: isxander
1+
patreon: isxander

.github/workflows/build.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build & Test
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
id-token: write
7+
attestations: write
8+
artifact-metadata: write
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
name: Build with gradle
14+
15+
steps:
16+
- uses: actions/setup-java@v5
17+
with:
18+
java-version: 25
19+
distribution: temurin
20+
21+
- uses: actions/checkout@v6
22+
with:
23+
fetch-depth: 1
24+
25+
- name: Set up Gradle
26+
uses: gradle/actions/setup-gradle@v6
27+
with:
28+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
29+
30+
- name: Check with Gradle
31+
run: ./gradlew check
32+
33+
- name: Build with Gradle
34+
run: ./gradlew build
35+
36+
- uses: actions/attest@v4
37+
with:
38+
subject-path: build/libs/*.jar
39+
40+
- uses: actions/upload-artifact@v7
41+
with:
42+
path: build/libs/*
Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,29 @@
11
name: Bug Status Check
22

33
on:
4-
push:
5-
branches:
6-
- '*'
7-
paths:
8-
- 'PATCHED.md'
94
schedule:
105
- cron: 0 0 * * *
116
workflow_dispatch:
7+
128
jobs:
139
build:
1410
runs-on: ubuntu-latest
1511
name: Check bug status
1612

1713
steps:
18-
- uses: actions/checkout@v3
19-
- name: Set up Python
20-
uses: actions/setup-python@v4
14+
- uses: actions/setup-java@v5
15+
with:
16+
java-version: 25
17+
distribution: temurin
18+
19+
- uses: actions/checkout@v6
2120
with:
22-
python-version: '3.x'
23-
- name: Install pip requirements
24-
run: pip install requests packaging
25-
- name: Run script
26-
run: python scripts/check_bug_fixes.py
21+
fetch-depth: 1
22+
23+
- name: Set up Gradle
24+
uses: gradle/actions/setup-gradle@v6
25+
with:
26+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
27+
28+
- name: Check bug status with Gradle
29+
run: ./gradlew checkBugFixes

.github/workflows/gradle.yml

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

.github/workflows/publish.yml

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

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release
2+
on: [workflow_dispatch]
3+
4+
permissions:
5+
contents: write
6+
id-token: write
7+
attestations: write
8+
artifact-metadata: write
9+
10+
jobs:
11+
release:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/setup-java@v5
16+
with:
17+
java-version: 25
18+
distribution: temurin
19+
20+
- uses: actions/checkout@v6
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Set up Gradle
25+
uses: gradle/actions/setup-gradle@v6
26+
with:
27+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
28+
cache-read-only: true
29+
30+
- name: Build mod
31+
run: ./gradlew build
32+
33+
- uses: actions/attest@v4
34+
with:
35+
subject-path: build/libs/*.jar
36+
37+
- name: Publish mod
38+
run: ./gradlew publishDebugify
39+
env:
40+
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
41+
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
42+
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
43+
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
44+
MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
45+
SIGN: true
46+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
47+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
48+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}

changelogs/header.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)