Add PR snapshots

This commit is contained in:
shedaniel
2021-01-25 11:56:49 +08:00
parent 2c96ec266e
commit 5e808e52ee
3 changed files with 39 additions and 4 deletions

22
.github/workflows/snapshot.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Snapshot Compile & Release
on:
[pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Upload to Bintray
run: ./gradlew bintrayUpload --stacktrace
env:
BINTRAY_USER: shedaniel
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
PR_NUM: ${{github.event.number}}