Skip to content

Commit d1e6a85

Browse files
committed
Remove mod building from workflows
1 parent 762849a commit d1e6a85

File tree

2 files changed

+2
-92
lines changed

2 files changed

+2
-92
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,6 @@ jobs:
2424
- name: Print message so the workflow isn't invalid
2525
run: 'echo "HexDebug <3 HexBug"'
2626

27-
build-mod:
28-
needs: setup
29-
runs-on: ubuntu-latest
30-
steps:
31-
- uses: actions/checkout@v4
32-
- uses: actions/setup-java@v4
33-
with:
34-
distribution: temurin
35-
java-version: 17
36-
- uses: gradle/actions/setup-gradle@v3
37-
38-
- name: Build mod
39-
run: ./gradlew build exportPrerelease
40-
41-
# literally no idea why the mkdir is needed, but the workflow fails without it :/
42-
- name: Check if datagen needs to be run
43-
timeout-minutes: 3
44-
run: |
45-
mkdir -p /home/runner/.gradle/caches/fabric-loom/assets
46-
./gradlew runAllDatagen
47-
git add --intent-to-add .
48-
git diff --name-only --exit-code -- ":!:*/src/generated/resources/.cache/*"
49-
50-
- name: Upload prerelease artifact
51-
uses: actions/upload-artifact@v4
52-
with:
53-
name: mod-prerelease
54-
path: dist/
55-
if-no-files-found: error
56-
5727
build-docs:
5828
needs: setup
5929
uses: hexdoc-dev/hexdoc/.github/workflows/hexdoc.yml@v1!0.1.dev

.github/workflows/release.yml

Lines changed: 2 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
name: Release
22

3+
# TODO: trigger this via Jenkins somehow?
4+
35
on:
46
workflow_dispatch:
57
inputs:
6-
publish-curseforge:
7-
description: Publish to CurseForge
8-
type: boolean
9-
default: false
10-
publish-modrinth:
11-
description: Publish to Modrinth
12-
type: boolean
13-
default: false
14-
publish-github:
15-
description: Publish to GitHub
16-
type: boolean
17-
default: false
188
publish-docs:
199
description: Publish the web book
2010
type: boolean
@@ -43,56 +33,6 @@ jobs:
4333
deploy-pages: ${{ inputs.publish-docs && !inputs.dry-run }}
4434
release: true
4535

46-
publish-mod:
47-
needs: build-docs
48-
if: inputs.publish-curseforge || inputs.publish-modrinth || inputs.publish-github
49-
runs-on: ubuntu-latest
50-
environment:
51-
name: curseforge-modrinth
52-
permissions:
53-
contents: write
54-
steps:
55-
- uses: actions/checkout@v4
56-
- uses: actions/setup-java@v4
57-
with:
58-
distribution: temurin
59-
java-version: 17
60-
- uses: gradle/actions/setup-gradle@v3
61-
62-
- name: Build mod
63-
run: ./gradlew build
64-
65-
# do this first so we fail if we've already published this version
66-
# because CurseForge and Modrinth apparently don't care!
67-
- name: Publish to GitHub
68-
if: inputs.publish-github
69-
env:
70-
DRY_RUN: ${{ inputs.dry-run && 'true' || '' }}
71-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72-
run: ./gradlew publishGithub
73-
74-
- name: Publish to CurseForge
75-
if: inputs.publish-curseforge
76-
env:
77-
DRY_RUN: ${{ inputs.dry-run && 'true' || '' }}
78-
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
79-
run: ./gradlew publishCurseforge
80-
81-
- name: Publish to Modrinth
82-
if: inputs.publish-modrinth
83-
env:
84-
DRY_RUN: ${{ inputs.dry-run && 'true' || '' }}
85-
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
86-
run: ./gradlew publishModrinth
87-
88-
- name: Upload dry run artifact
89-
if: inputs.dry-run
90-
uses: actions/upload-artifact@v4
91-
with:
92-
name: mod-publish
93-
path: '*/build/publishMods'
94-
if-no-files-found: error
95-
9636
publish-docs:
9737
needs: build-docs
9838
if: inputs.publish-docs && !inputs.dry-run

0 commit comments

Comments
 (0)