Skip to content

Commit a71f239

Browse files
committed
新增工作流
1 parent 6916170 commit a71f239

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build mod
2+
3+
on: [ push, pull_request, workflow_dispatch ]
4+
5+
jobs:
6+
build:
7+
name: Build mod
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up JDK 17
13+
uses: actions/setup-java@v2
14+
with:
15+
distribution: 'adopt'
16+
java-version: '17'
17+
- name: Grant execute permission for gradlew
18+
run: chmod +x gradlew
19+
- name: Build with Gradle
20+
run: ./gradlew -Pnet.minecraftforge.gradle.disableUpdateChecker=true build
21+
- name: Upload artifacts
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: AE2FluidCraft-Rework-Unofficial
25+
path: build/libs

.github/workflows/release.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Release tagged build
2+
3+
on:
4+
push:
5+
tags: [ '*' ]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release-tags:
12+
uses: GTNewHorizons/GTNH-Actions-Workflows/.github/workflows/release-tags.yml@master
13+
secrets: inherit

0 commit comments

Comments
 (0)