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 "REVISION=$REVISION" >> $GITHUB_ENV
|
||||||
echo "IMPLEMENTATION_NAME=$IMPLEMENTATION_NAME" >> $GITHUB_ENV
|
echo "IMPLEMENTATION_NAME=$IMPLEMENTATION_NAME" >> $GITHUB_ENV
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: 17
|
java-version: 17
|
||||||
server-id: mchv-release-distribution
|
server-id: mchv-release-distribution
|
||||||
server-username: MAVEN_USERNAME
|
server-username: MAVEN_USERNAME
|
||||||
server-password: MAVEN_PASSWORD
|
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)
|
- name: Deploy to Maven (Release)
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
shell: bash
|
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