snapshot.yml 733 B

1234567891011121314151617181920212223242526272829
  1. name: Snapshot Compile & Release
  2. on:
  3. pull_request:
  4. paths:
  5. - '**.gradle'
  6. - '**.properties'
  7. - '**/src/**'
  8. types: [ opened, synchronize, reopened ]
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v1
  14. - name: Set up JDK 1.8
  15. uses: actions/setup-java@v1
  16. with:
  17. java-version: 1.8
  18. - name: Upload to Bintray
  19. run: ./gradlew bintrayUpload --stacktrace
  20. if: |
  21. !contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.pull_request.title, '[ci skip]')
  22. env:
  23. BINTRAY_USER: shedaniel
  24. BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
  25. PR_NUM: ${{github.event.number}}