Update build.yml

pull/74/head
xyz8848 3 years ago
parent b1b405f1c2
commit 7aea0a53fe
  1. 17
      .github/workflows/build.yml

@ -11,21 +11,26 @@ jobs:
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: Set outputs
# id: vars
# run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
- name: Build
run: ./gradlew build
- name: Rename build artifacts
run: mv build/libs/FDPClient-*.jar build/libs/FDPClient-${{ steps.vars.outputs.sha_short }}.jar
# - 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
path: /usr/local/lib/android/sdk/ndk-bundle/*.*
Loading…
Cancel
Save