Skip to content

build: 更新依赖 #143

build: 更新依赖

build: 更新依赖 #143

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Build
on:
push:
paths:
- '**.java'
- '**/build.gradle.kts'
- 'gradle.properties'
branches: [ dev-next ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 17 ]
steps:
- uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: ${{matrix.java}}
- name: Cache Gradle packages
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
env:
publicReleasesRepoUrl: ${{secrets.PUBLICRELEASESREPOURL}}
publicSnapshotsRepoUrl: ${{secrets.PUBLICSNAPSHOTSREPOURL}}
publicRepoUsername: ${{secrets.PUBLICREPOUSERNAME}}
publicRepoPassword: ${{secrets.PUBLICREPOPASSWORD}}
run: ./gradlew build
- name: codacy
env:
CODACY_PROJECT_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}}
run: bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java $(find -path '**/jacoco/report.xml' -printf '-r %p ')
sync:
runs-on: ubuntu-latest
steps:
- name: Sync To Gitee
uses: Yikun/hub-mirror-action@master
with:
src: github/cn-src
dst: gitee/cn-src
dst_key: ${{secrets.GITEE_PRIVATE_KEY}}
dst_token: ${{secrets.GITEE_TOKEN}}
static_list: "jany"