mirror of
https://github.com/YouHaveTrouble/BlockEdit.git
synced 2026-06-29 13:36:19 +00:00
24 lines
649 B
YAML
24 lines
649 B
YAML
name: Build plugin
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: 17
|
|
distribution: 'temurin'
|
|
- name: Build with Maven
|
|
run: mvn -B package --file pom.xml -Djar.finalName=BlockEdit-${GITHUB_REF}-${GITHUB_SHA::6}
|
|
- name: Copy artifacts
|
|
run: mkdir staging && cp target/BlockEdit-*.jar staging
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: BlockEdit-${GITHUB_REF}-${GITHUB_SHA::6}
|
|
path: staging |