|
43 | 43 | run: sh scripts/deploy.sh |
44 | 44 | env: |
45 | 45 | COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} |
46 | | - |
47 | | - build-dynamic-frameworks: |
48 | | - runs-on: macos-latest |
49 | | - needs: [pod-lint, test] |
50 | | - |
51 | | - strategy: |
52 | | - matrix: |
53 | | - ENABLE_BITCODE: [YES, NO] |
54 | | - SWIFT_EMBEDDED: [YES, NO] |
55 | | - |
56 | | - steps: |
57 | | - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
58 | | - - uses: actions/checkout@v3 |
59 | | - |
60 | | - - name: Install cocoapods and rome |
61 | | - run: gem install cocoapods cocoapods-rome |
62 | | - |
63 | | - - name: Run pod install with Podfile from workflows directory |
64 | | - run: cp .github/workflows/Podfile . && pod install |
65 | | - env: |
66 | | - ENABLE_BITCODE: ${{ matrix.ENABLE_BITCODE }} |
67 | | - SWIFT_EMBEDDED: ${{ matrix.SWIFT_EMBEDDED }} |
68 | | - BACKTRACE_VERSION: ${{ github.ref_name }} |
69 | | - |
70 | | - - name: Tar files to preserve file permissions |
71 | | - run: tar -cvzf Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}.tar.gz Rome/ dSYM/ |
72 | | - |
73 | | - - uses: actions/upload-artifact@v3 |
74 | | - with: |
75 | | - name: Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }} |
76 | | - path: Archive_DynamicFramework_iOS_Bitcode${{ matrix.ENABLE_BITCODE }}_SwiftEmbedded${{ matrix.SWIFT_EMBEDDED }}_${{ github.ref_name }}.tar.gz |
77 | | - |
78 | | - upload-to-github-release: |
79 | | - runs-on: ubuntu-latest |
80 | | - needs: build-dynamic-frameworks |
81 | | - |
82 | | - steps: |
83 | | - - uses: actions/checkout@v3 |
84 | | - |
85 | | - - uses: actions/download-artifact@v3 |
86 | | - id: download |
87 | | - with: |
88 | | - path: artifacts/ |
89 | | - |
90 | | - - uses: xresloader/upload-to-github-release@v1 |
91 | | - env: |
92 | | - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
93 | | - with: |
94 | | - file: ${{ steps.download.outputs.download-path }} |
95 | | - draft: true |
96 | | - verbose: env.ACTIONS_STEP_DEBUG |
0 commit comments