From fc7973944afa27c8c39121271cdd8c9afa576c66 Mon Sep 17 00:00:00 2001 From: nbwzlyd1 <1185675288@qq.com> Date: Sat, 18 Feb 2023 20:53:58 +0800 Subject: [PATCH] Create main.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 github action 自动打包 --- .github/workflows/main.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..851f5241 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: Spider Jar Gen CI + +on: workflow_dispatch + +jobs: + build: + + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + - name: set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: gradle + + - name: Build with Gradle + run: ./build.bat ec + + - name: Update spider jar + uses: EndBug/add-and-commit@v7 + with: + default_author: github_actions + message: 'update spider jar' + add: "['./jar/custom_spider.jar', './jar/custom_spider.jar.md5']"