taro_playground.bundle_release.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # action for bundle taro react native project
  2. # remove this file if you don't need it
  3. # see https://github.com/zhiqingchen/taro-react-native-release for details.
  4. on:
  5. push:
  6. tags: [ b* ]
  7. workflow_dispatch:
  8. jobs:
  9. taro_release_job:
  10. runs-on: ubuntu-latest
  11. name: Taro Bundle Release
  12. steps:
  13. - name: Checkout Project
  14. uses: actions/checkout@v2
  15. - name: Cache node_modules Folder
  16. uses: actions/cache@v2
  17. with:
  18. path: ${{ github.workspace }}/node_modules
  19. key: ${{ runner.os }}-node_modules
  20. restore-keys: ${{ runner.os }}-node_modules
  21. - name: Get Yarn Cache Directory Path
  22. id: yarn-cache-dir-path
  23. run: echo "::set-output name=dir::$(yarn cache dir)"
  24. - name: Cache Yarn
  25. uses: actions/cache@v2
  26. env:
  27. cache-name: yarn-cache
  28. with:
  29. path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
  30. key: ${{ runner.os }}-yarn-${{ hashFiles('**/package.json') }}
  31. restore-keys: |
  32. ${{ runner.os }}-yarn-
  33. - name: Install Dependencies
  34. run: |
  35. yarn
  36. - name: Release Taro React Native bundle
  37. uses: zhiqingchen/taro-react-native-release@v1
  38. with:
  39. token: ${{ secrets.GITHUB_TOKEN }}
  40. - name: Upload Qr Image
  41. uses: actions/upload-artifact@v2
  42. with:
  43. name: bundle-qr-code
  44. path: |
  45. release/qrcode/ios.png
  46. release/qrcode/android.png