Skip to content

Commit 0e8d2d3

Browse files
committed
[CI] Store main build dir, hopefully speed up publish
1 parent 91460e9 commit 0e8d2d3

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

.github/workflows/_datagen.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@ jobs:
3636
uses: actions/upload-artifact@v4
3737
with:
3838
name: generated-data
39-
path: neoforge-main/src/generated/resources
39+
path: neoforge-main/src/generated/resources
40+
41+
- name: Store Compiled
42+
if: success()
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: build-main
46+
path: neoforge-main/build

.github/workflows/_publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ jobs:
3434
name: generated-data
3535
path: neoforge-main/src/generated/resources
3636

37+
- name: Pull Compilation Data
38+
uses: actions/download-artifact@v4
39+
with:
40+
name: build-main
41+
path: neoforge-main/build
42+
3743
- name: Publish
38-
run: ./gradlew :neoforge-main:publishCompactmachinesPublicationToGitHubPackagesRepository
44+
run: ./gradlew :neoforge-main:publishCompactmachinesPublicationToGitHubPackagesRepository --stacktrace
3945
env:
4046
VERSION: ${{ inputs.version }}
4147
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}

0 commit comments

Comments
 (0)