From d5fd8694614a68b6648f6a1f356472e2ab76db41 Mon Sep 17 00:00:00 2001 From: lanzhi6 Date: Tue, 25 Jun 2024 12:51:08 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=B7=BB=E5=8A=A0Github=20action?= =?UTF-8?q?=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4fbda7c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,25 @@ +name: build +on: + push: + branches: + - dev +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # 安装 JDK 17 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: 'adopt' + java-version: '17' + # 执行 Gradle 构建 + - name: Build with Gradle + run: ./gradlew build + # 上传构建产物 + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: Subit ForumBackendKtor Artifact + path: build/libs/*.jar \ No newline at end of file