mirror of
https://github.com/empayre/tdlight-java.git
synced 2024-11-06 09:55:17 +00:00
Fix github actions workflow
This commit is contained in:
parent
9d8dd57d7f
commit
94e7a682bd
8
.github/workflows/maven-publish.yml
vendored
8
.github/workflows/maven-publish.yml
vendored
@ -35,13 +35,19 @@ jobs:
|
||||
echo "REVISION=$REVISION" >> $GITHUB_ENV
|
||||
echo "IMPLEMENTATION_NAME=$IMPLEMENTATION_NAME" >> $GITHUB_ENV
|
||||
- name: Set up JDK 17
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 17
|
||||
server-id: mchv-release-distribution
|
||||
server-username: MAVEN_USERNAME
|
||||
server-password: MAVEN_PASSWORD
|
||||
- name: Build
|
||||
if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||
shell: bash
|
||||
run: |
|
||||
echo "IMPLEMENTATION_NAME: $IMPLEMENTATION_NAME"
|
||||
|
||||
source ./scripts/continuous-integration/github-workflows/only-compile-release.sh
|
||||
- name: Deploy to Maven (Release)
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
shell: bash
|
||||
|
10
scripts/continuous-integration/github-workflows/only-compile-release.sh
Executable file
10
scripts/continuous-integration/github-workflows/only-compile-release.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash -e
|
||||
set -e
|
||||
# OTHER REQUIRED ENVIRONMENT VARIABLES:
|
||||
# IMPLEMENTATION_NAME = <tdlib | tdlight>
|
||||
|
||||
cd ./scripts/core/
|
||||
./only_compile_release.sh
|
||||
|
||||
echo "Done."
|
||||
exit 0
|
16
scripts/core/only_compile_release.sh
Executable file
16
scripts/core/only_compile_release.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash -e
|
||||
# OTHER REQUIRED ENVIRONMENT VARIABLES:
|
||||
# IMPLEMENTATION_NAME = <tdlib | tdlight>
|
||||
|
||||
# Check variables correctness
|
||||
if [ -z "${IMPLEMENTATION_NAME}" ]; then
|
||||
echo "Missing parameter: IMPLEMENTATION_NAME"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ../../${IMPLEMENTATION_NAME}
|
||||
|
||||
mvn -B clean package --file pom.xml
|
||||
|
||||
echo "Done."
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user