Experimental | Fix & Prepare update Taboolib 6.2 [1/3] [skip] #556
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Plugin Build | |
# 触发条件 | |
on: | |
# 手动触发 | |
workflow_dispatch: | |
# 推送时触发 | |
push: | |
# 环境变量 | |
env: | |
GITHUB_REPO: ${{ github.repository }} | |
GITHUB_USERNAME: ${{ github.actor }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# 任务 | |
jobs: | |
build: | |
# 检查提交信息 | |
if: contains(github.event.head_commit.message, '[skip]') == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Cache Gradle Packages | |
uses: actions/cache@v4 | |
with: | |
key: ${{ runner.os }}-Build-Cache | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
- name: Validate Gradle Wrapper | |
uses: gradle/actions/wrapper-validation@v3 | |
- name: Setup JDK 8 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: adopt | |
java-version: 8 | |
- name: Make Gradle Wrapper Executable | |
run: chmod +x ./gradlew | |
- name: Build | |
run: ./gradlew clean build --refresh-dependencies | |
- name: Capture Build Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Artifacts | |
path: outs/ | |
- name: Automatic Releases | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: latest | |
prerelease: false | |
title: "自动构建最新版本" | |
files: | | |
outs/*.* |