chore: 更新依赖 #103
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: Points 自动构建 | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
pull_request: | |
types: [ opened, synchronize, reopened ] | |
jobs: | |
build-with-Gradle: | |
name: Gradle Automation Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 17 | |
# add cache to improve workflow execution time | |
- name: Cache .gradle/caches | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | |
restore-keys: ${{ runner.os }}-gradle- | |
- name: Cache .gradle/wrapper | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }} | |
restore-keys: ${{ runner.os }}-gradle-wrapper- | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
# - name: Build with Gradle | |
# run: ./gradlew clean build -s | |
- name: Build with Gradle shadowJar | |
run: ./gradlew build shadowJar --info | |
- name: Upload Paper Build Target | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Points-Artifact | |
path: build/libs/ |