just build and deploy to sonotype - no auto uploads/releases
This commit is contained in:
parent
1b00cfc372
commit
23ad7350aa
1 changed files with 36 additions and 65 deletions
101
.github/workflows/deploy.yml
vendored
101
.github/workflows/deploy.yml
vendored
|
@ -42,25 +42,25 @@ jobs:
|
||||||
NEXUS_SIGNING_KEY_PASSWORD: ${{ secrets.NEXUS_SIGNING_KEY_PASSWORD }}
|
NEXUS_SIGNING_KEY_PASSWORD: ${{ secrets.NEXUS_SIGNING_KEY_PASSWORD }}
|
||||||
NEXUS_SIGNING_KEY_ID: ${{ secrets.NEXUS_SIGNING_KEY_ID }}
|
NEXUS_SIGNING_KEY_ID: ${{ secrets.NEXUS_SIGNING_KEY_ID }}
|
||||||
run: ./build-release.sh
|
run: ./build-release.sh
|
||||||
- name: debug bin
|
# - name: debug bin
|
||||||
run : ls -al ./bin
|
# run : ls -al ./bin
|
||||||
- name: upload to build_lbry_io
|
# - name: upload to build_lbry_io
|
||||||
run : |
|
# run : |
|
||||||
pip install awscli
|
# pip install awscli
|
||||||
export PR_NUMBER=${{ github.event.number }}
|
# export PR_NUMBER=${{ github.event.number }}
|
||||||
|
|
||||||
export BUILD_APK_FILENAME__64=lbrysdk-${{ env.BUILD_VERSION }}-arm64-v8a-release.aar
|
# export BUILD_APK_FILENAME__64=lbrysdk-${{ env.BUILD_VERSION }}-arm64-v8a-release.aar
|
||||||
aws s3 cp ./bin/${BUILD_APK_FILENAME__64} s3://build.lbry.io/android/sdk-build-${PR_NUMBER}_commit-${{ github.sha }}/${BUILD_APK_FILENAME__64}
|
# aws s3 cp ./bin/${BUILD_APK_FILENAME__64} s3://build.lbry.io/android/sdk-build-${PR_NUMBER}_commit-${{ github.sha }}/${BUILD_APK_FILENAME__64}
|
||||||
env:
|
# env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
# AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
||||||
- name: github release
|
# - name: github release
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
# if: startsWith(github.ref, 'refs/tags/v')
|
||||||
run: |
|
# run: |
|
||||||
pip install githubrelease
|
# pip install githubrelease
|
||||||
export GITHUB_TOKEN=${{ github.token }}
|
# export GITHUB_TOKEN=${{ github.token }}
|
||||||
githubrelease release lbryio/lbry-android-sdk create ${{ github.ref_name }} --publish bin/${BUILD_APK_FILENAME__64}
|
# githubrelease release lbryio/lbry-android-sdk create ${{ github.ref_name }} --publish bin/${BUILD_APK_FILENAME__64}
|
||||||
|
|
||||||
build_arm_aar:
|
build_arm_aar:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -99,50 +99,21 @@ jobs:
|
||||||
NEXUS_SIGNING_KEY_PASSWORD: ${{ secrets.NEXUS_SIGNING_KEY_PASSWORD }}
|
NEXUS_SIGNING_KEY_PASSWORD: ${{ secrets.NEXUS_SIGNING_KEY_PASSWORD }}
|
||||||
NEXUS_SIGNING_KEY_ID: ${{ secrets.NEXUS_SIGNING_KEY_ID }}
|
NEXUS_SIGNING_KEY_ID: ${{ secrets.NEXUS_SIGNING_KEY_ID }}
|
||||||
run: ./build-release.sh
|
run: ./build-release.sh
|
||||||
- name: upload to build_lbry_io
|
# - name: upload to build_lbry_io
|
||||||
run : |
|
# run : |
|
||||||
pip install awscli
|
# pip install awscli
|
||||||
export PR_NUMBER=${{ github.event.number }}
|
# export PR_NUMBER=${{ github.event.number }}
|
||||||
export BUILD_APK_FILENAME__32=lbrysdk-${{ env.BUILD_VERSION }}-armeabi-v7a-release.aar
|
# export BUILD_APK_FILENAME__32=lbrysdk-${{ env.BUILD_VERSION }}-armeabi-v7a-release.aar
|
||||||
aws s3 cp bin/${BUILD_APK_FILENAME__32} s3://build.lbry.io/android/sdk-build-{$PR_NUMBER}_commit-${{ github.sha }}/${BUILD_APK_FILENAME__32}
|
# aws s3 cp bin/${BUILD_APK_FILENAME__32} s3://build.lbry.io/android/sdk-build-{$PR_NUMBER}_commit-${{ github.sha }}/${BUILD_APK_FILENAME__32}
|
||||||
env:
|
# env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
# AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
||||||
- name: github upload binary
|
# - name: github upload binary
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
# if: startsWith(github.ref, 'refs/tags/v')
|
||||||
uses: skx/github-action-publish-binaries@release-1.3
|
# uses: skx/github-action-publish-binaries@release-1.3
|
||||||
env:
|
# env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
BUILD_VERSION: ${{ env.BUILD_VERSION }}
|
# BUILD_VERSION: ${{ env.BUILD_VERSION }}
|
||||||
with:
|
# with:
|
||||||
args: bin/${BUILD_APK_FILENAME__32}
|
# args: bin/${BUILD_APK_FILENAME__32}
|
||||||
# deploy_build_lbry_io:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# container: lbry/android-base:python39
|
|
||||||
# needs: [build_arm64_aar, build_arm_aar]
|
|
||||||
# steps:
|
|
||||||
# - name: dependencies
|
|
||||||
# run: |
|
|
||||||
# pip install awscli
|
|
||||||
# export PR_NUMBER=${{ github.event.number }}
|
|
||||||
# export BUILD_VERSION=$(cat $GITHUB_WORKSPACE/src/main/python/main.py | grep --color=never -oP '([0-9]+\.?)+')
|
|
||||||
# export BUILD_APK_FILENAME__32=lbrysdk-${{ BUILD_VERSION }}-armeabi-v7a-release.aar
|
|
||||||
# export BUILD_APK_FILENAME__64=lbrysdk-${{ BUILD_VERSION }}-arm64-v8a-release.aar
|
|
||||||
# - name: upload
|
|
||||||
# run: |
|
|
||||||
# aws s3 cp bin/${{ BUILD_APK_FILENAME__64 }} s3://build.lbry.io/android/sdk-build-${{ PR_NUMBER }}_commit-${{ github.sha }}/${{ BUILD_APK_FILENAME__64 }}
|
|
||||||
# aws s3 cp bin/${{ BUILD_APK_FILENAME__32 }} s3://build.lbry.io/android/sdk-build-${{ PR_NUMBER }}_commit-${{ github.sha }}/${{ BUILD_APK_FILENAME__32 }}
|
|
||||||
|
|
||||||
# release_aar:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# container: python:latest
|
|
||||||
# needs: [build_arm64_aar, build_arm_aar]
|
|
||||||
# steps:
|
|
||||||
# - name: dependencies
|
|
||||||
# run: |
|
|
||||||
# pip install awscli githubrelease
|
|
||||||
# export BUILD_VERSION=$(cat $GITHUB_WORKSPACE/src/main/python/main.py | grep --color=never -oP '([0-9]+\.?)+')
|
|
||||||
# export BUILD_APK_FILENAME__32=lbrysdk-${{ BUILD_VERSION }}-armeabi-v7a-release.aar
|
|
||||||
# export BUILD_APK_FILENAME__64=lbrysdk-${{ BUILD_VERSION }}-arm64-v8a-release.aar
|
|
||||||
# - name: release
|
|
||||||
|
|
Loading…
Reference in a new issue