test.yml 775 B

1234567891011121314151617181920212223242526272829303132
  1. name: Test Build
  2. on:
  3. # push:
  4. # branches:
  5. # - main
  6. # pull_request:
  7. workflow_dispatch:
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. with:
  14. fetch-depth: 0
  15. - name: Build With Gradle
  16. run: |
  17. chmod +x gradlew
  18. ./gradlew assemblerelease --build-cache --parallel --daemon --warning-mode all
  19. - name: Prepare App
  20. run: |
  21. mkdir -p ${{ github.workspace }}/apk/
  22. for file in `find ~ -name "*.apk" -print`; do
  23. mv "$file" ${{ github.workspace }}/apk/
  24. done
  25. - name: Upload App To Artifact
  26. uses: actions/upload-artifact@v3
  27. with:
  28. name: com.github.tvbox.osc
  29. path: ${{ github.workspace }}/apk/*