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
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 11
|
||||||
|
server-id: mchv-snapshot-distribution
|
||||||
|
server-username: MAVEN_USERNAME
|
||||||
|
server-password: MAVEN_PASSWORD
|
||||||
- name: Setup variables
|
- name: Setup variables
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@ -100,8 +103,19 @@ jobs:
|
|||||||
echo "REVISION: $REVISION"
|
echo "REVISION: $REVISION"
|
||||||
|
|
||||||
source ./github-workflows/build.sh
|
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
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: tdlight-${{ env.SAFE_ARCH }}
|
path: ${{ steps.getfilename.outputs.file }}
|
||||||
path: tdlib/lib
|
- 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…
Reference in New Issue
Block a user