Skip to content

refactor: 更改包名 #102

refactor: 更改包名

refactor: 更改包名 #102

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/