mirror of
https://github.com/halo-dev/plugin-s3.git
synced 2026-01-28 02:00:45 +08:00
30 lines
649 B
YAML
30 lines
649 B
YAML
name: Build Plugin JAR File
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: true
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: "temurin"
|
|
cache: "gradle"
|
|
java-version: 17
|
|
- name: Build with Gradle
|
|
run: |
|
|
./gradlew clean build -x test
|
|
- name: Archive plugin-alioss jar
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: plugin-alioss
|
|
path: |
|
|
build/libs/*-plain.jar
|
|
retention-days: 7
|