Skip to content

Commit adab6a4

Browse files
committed
Unfortunately workflows have separated file systems
1 parent 1dfa610 commit adab6a4

File tree

1 file changed

+46
-6
lines changed

1 file changed

+46
-6
lines changed

.github/workflows/release.yml

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,57 @@ on:
66
- '*'
77

88
jobs:
9-
call_build:
10-
uses: ./.github/workflows/build.yml
11-
12-
release:
13-
name: Create release
9+
build_and_release:
10+
name: Build and Release Lambda
1411
runs-on: ubuntu-latest
15-
needs: call_build
1612
steps:
1713
- name: Checkout Main
1814
uses: actions/checkout@v4.1.1
1915

16+
- name: Set up JDK
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'oracle'
20+
java-version: '17'
21+
architecture: x64
22+
cache: 'gradle'
23+
cache-dependency-path: |
24+
build.gradle.kts
25+
26+
- name: Read Gradle Properties
27+
uses: BrycensRanch/read-properties-action@v1.0.4
28+
id: all
29+
with:
30+
file: gradle.properties
31+
all: true
32+
33+
- name: Build Lambda
34+
run: ./gradlew --build-cache build
35+
36+
- name: Upload Lambda Fabric
37+
uses: actions/upload-artifact@v4.3.6
38+
with:
39+
name: lambda-fabric
40+
path: fabric/build/libs/
41+
42+
- name: Upload Lambda Forge
43+
uses: actions/upload-artifact@v4.3.6
44+
with:
45+
name: lambda-forge
46+
path: forge/build/libs/
47+
48+
- name: Upload Lambda NeoForge
49+
uses: actions/upload-artifact@v4.3.6
50+
with:
51+
name: lambda-neoforge
52+
path: fabric/build/libs/
53+
54+
- name: Upload Lambda API
55+
uses: actions/upload-artifact@v4.3.6
56+
with:
57+
name: lambda-api
58+
path: common/build/libs/
59+
2060
- name: Generate Changelog
2161
id: changelog
2262
uses: mikepenz/release-changelog-builder-action@v4.1.1

0 commit comments

Comments
 (0)