Update build.yaml and deploy-snapshot.sh
This commit is contained in:
parent
e5c00abbb7
commit
8e029f2e08
18
.github/workflows/build.yaml
vendored
18
.github/workflows/build.yaml
vendored
@ -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 }}
|
||||
|
||||
|
7
github-workflows/deploy-snapshot.sh
Executable file
7
github-workflows/deploy-snapshot.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash -e
|
||||
set -e
|
||||
cd ./scripts/
|
||||
./deploy_snapshot.sh
|
||||
|
||||
echo "Done."
|
||||
exit 0
|
Loading…
x
Reference in New Issue
Block a user