You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
861 B
35 lines
861 B
name: build
|
|
|
|
on:
|
|
- push
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Java setup
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
distribution: "zulu"
|
|
java-version: 8
|
|
cache: "gradle"
|
|
|
|
- name: Set outputs
|
|
id: vars
|
|
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
|
|
|
|
- name: Build
|
|
run: gradlew.bat
|
|
|
|
- name: Rename build artifacts
|
|
run: mv build/libs/FDPClient-*.jar build/libs/FDPClient-${{ steps.vars.outputs.sha_short }}.jar
|
|
|
|
- name: Upload build artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: FDPClient
|
|
path: build/libs/FDPClient-${{ steps.vars.outputs.sha_short }}.jar |