[2.0.9] Fix #246
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: TrChat build | |
on: [ push ] | |
jobs: | |
build: | |
if: contains(github.event.head_commit.message, '[actions skip]') == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v2 | |
- name: cache gradle packages | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-build-${{ env.cache-name }} | |
path: | | |
~/.gradle/caches | |
~/.gradle/wrapper | |
- name: validate gradle wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: setup jdk 8.0 | |
uses: actions/setup-java@v2 | |
with: | |
distribution: adopt | |
java-version: 8.0 | |
- name: make gradle wrapper executable | |
run: chmod +x ./gradlew | |
- name: build | |
run: ./gradlew build | |
- name: capture build artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: TrChat Artifacts | |
path: plugin/build/libs/ | |
# - name: automatic releases | |
# uses: marvinpinto/[email protected] | |
# with: | |
# repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
# automatic_release_tag: "latest" | |
# prerelease: false | |
# title: "TrChat 自动构建最新版本" | |
# files: | | |
# plugin/build/libs/*.* |