Create build.yml

pull/74/head
xyz8848 3 years ago
parent a55cf62f31
commit 2c2c7668b7
  1. 35
      .github/workflow/build.yml

@ -0,0 +1,35 @@
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
Loading…
Cancel
Save