diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fe403210c..cf898e5a99 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -230,12 +230,13 @@ jobs: - name: Create APK working-directory: apk run: | - export APK_ABI=${{ matrix.abi }} + APK_ABI=${{ matrix.abi }} APK_VERSION_NAME=${{ github.event.release.tag_name }} - export APK_VERSION_NAME=${APK_VERSION_NAME#v} + APK_VERSION_NAME=${APK_VERSION_NAME#v} mkdir -p app/libs/$APK_ABI cp ../src/out/Release/naive app/libs/$APK_ABI/libnaive.so - KEYSTORE_PASS=${{ secrets.KEYSTORE_PASS }} ./gradlew :apk:app:assembleRelease + env + KEYSTORE_PASS=${{ secrets.KEYSTORE_PASS }} APK_VERSION_NAME=$APK_VERSION_NAME APK_ABI=$APK_ABI ./gradlew :apk:app:assembleRelease APK_NAME=naiveproxy-plugin-$APK_VERSION_NAME-$APK_ABI.apk mv app/build/outputs/apk/release/$APK_NAME . @@ -246,6 +247,10 @@ jobs: with: name: ${{ env.APK_NAME }} sha256 ${{ env.SHA256SUM }} path: apk/sha256sum.txt + - uses: actions/upload-artifact@v3 + with: + name: ${{ env.APK_NAME }} + path: apk/${{ env.APK_NAME }} - name: Upload naiveproxy assets if: ${{ github.event_name == 'release' }} working-directory: apk