1414 runs-on : ubuntu-latest
1515 outputs :
1616 upload_url : ${{ steps.create_release.outputs.upload_url }}
17- version : ${{ steps.get_version .outputs.version }}
17+ version : ${{ steps.create_release .outputs.id }}
1818 steps :
1919 - name : Checkout code
2020 uses : actions/checkout@v3
3030 draft : true
3131 prerelease : false
3232
33- - name : Set version output
34- id : get_version
35- run : echo ::set-output name=version::``${GITHUB_REF#refs/tags/}``
36-
3733 build_uniffi :
3834 name : Build uniffi jni shared libs for android with cross
3935 runs-on : ubuntu-latest
4440 - { target: armv7-linux-androideabi }
4541 - { target: i686-linux-android }
4642 - { target: x86_64-linux-android }
47-
4843 steps :
4944 - name : Checkout code
5045 uses : actions/checkout@v1
@@ -113,7 +108,7 @@ jobs:
113108
114109 package_cordova_plugin :
115110 runs-on : ubuntu-latest
116- needs : [build_uniffi, build_lipo_asset]
111+ needs : [initial_release, build_uniffi, build_lipo_asset]
117112
118113 steps :
119114 - name : Checkout code
@@ -176,16 +171,16 @@ jobs:
176171
177172 - name : rename-tarball
178173 run : |
179- find . \
180- -name wallet-cordova-plugin*.tgz \
181- -exec mv {} chain-wallet-libs-${{ needs.initial_release.outputs.version }}-cordova.tgz \;
174+ find ./src/chain-wallet-libs -name wallet-cordova-plugin*.tgz -exec mv {} {} \;
175+ mv wallet-cordova-plugin*.tgz wallet-cordova-plugin-${{ needs.initial_release.outputs.version }}.tgz
176+ ls
182177
183178 - name : Upload binaries to release
184179 uses : actions/upload-release-asset@v1
185180 env :
186181 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
187182 with :
188183 upload_url : ${{ needs.initial_release.outputs.upload_url }}
189- asset_path : ./chain- wallet-libs- ${{ needs.initial_release.outputs.version }}-cordova .tgz
190- asset_name : chain- wallet-libs- cordova-${{ needs.initial_release.outputs.version }}
184+ asset_path : ./wallet-cordova-plugin- ${{ needs.initial_release.outputs.version }}.tgz
185+ asset_name : wallet-cordova-plugin- ${{ needs.initial_release.outputs.version }}.tgz
191186 asset_content_type : application/gzip
0 commit comments