Update build.yaml and deploy-snapshot.sh

This commit is contained in:
Andrea Cavalli 2020-12-27 18:45:23 +01:00
parent e5c00abbb7
commit 8e029f2e08
2 changed files with 23 additions and 2 deletions

View File

@ -51,6 +51,9 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 11
server-id: mchv-snapshot-distribution
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Setup variables
shell: bash
run: |
@ -100,8 +103,19 @@ jobs:
echo "REVISION: $REVISION"
source ./github-workflows/build.sh
- id: getfilename
shell: bash
run: echo "::set-output name=file::$(ls generated/target/tdli*-natives-*shaded.jar)"
- uses: actions/upload-artifact@v2
with:
name: tdlight-${{ env.SAFE_ARCH }}
path: tdlib/lib
path: ${{ steps.getfilename.outputs.file }}
- name: Deploy snapshot to Maven
shell: bash
run: |
echo "REVISION: $REVISION"
source ./github-workflows/deploy-snapshot.sh
env:
MAVEN_USERNAME: ${{ secrets.MCHV_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MCHV_TOKEN }}

View File

@ -0,0 +1,7 @@
#!/bin/bash -e
set -e
cd ./scripts/
./deploy_snapshot.sh
echo "Done."
exit 0