[fix][dingo-calcite] Correct some grammar #4161
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| # This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
| name: Build and Publish | |
| on: | |
| push: | |
| branches: [ quickBI-v4.0.0 ] | |
| pull_request: | |
| branches: [ quickBI-v4.0.0 ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: 'quickBI-v4.0.0' | |
| - name: Set up JDK17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - name: Clean Cache | |
| run: | | |
| rm -rf ~/.m2/repository/ | |
| rm -rf ~/.gradle/ | |
| - name: Clone Submodule | |
| run: git submodule update --init --recursive | |
| - name: Build Dingo Project | |
| run: | | |
| ./gradlew build -PisDownload=true --no-daemon -Dorg.gradle.jvmargs="-Xmx4096m -XX:MaxMetaspaceSize=1024m -XX:+UseZGC" | |
| - name: Build Java Documents | |
| uses: gradle/gradle-build-action@937999e9cc2425eddc7fd62d1053baf041147db7 | |
| with: | |
| arguments: javadoc | |
| - name: Publish Packages to Maven Central | |
| run: ./gradlew publishToMavenCentral --stacktrace | |
| env: | |
| ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }} | |
| - name: Archive the dingo directory | |
| run: | | |
| mkdir dingo | |
| unzip ./dingo-dist/build/distributions/dingo.zip -d dingo | |
| wget https://github.com/dingodb/dingo-deploy/raw/main/artifacts/sqlline-1.13.0-SNAPSHOT-jar-with-dependencies.jar -P dingo/libs/ | |
| cp -r ./dingo-client/build/docs/javadoc ./dingo/javadoc | |
| cp -r ./docker/templates/bin/* ./dingo/bin/ | |
| cp -r ./docker/templates/conf/* ./dingo/conf/ | |
| rm -rf ./dingo/conf/logback.xml | |
| rm -rf ./dingo/conf/config.yaml | |
| zip -r dingo.zip dingo/* | |
| - name: copy artifactory to another workflow | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dingo.zip | |
| path: ./dingo.zip | |
| - name: Record event type | |
| run: | | |
| branchName=$(echo "${{ github.ref_name }}") | |
| echo "branch name is: $branchName" | |
| echo "$branchName" > branch_name.txt | |
| commitId="${{ github.sha }}" | |
| shortCommitId=${commitId:0:7} | |
| echo "commit id is: $shortCommitId" | |
| echo "$shortCommitId" > commit_id.txt | |
| echo "hello dingofs" > event.txt | |
| if [ "${{ github.event_name }}" == "pull_request" ]; then | |
| echo "pull_request" > event.txt | |
| elif [ "${{ github.event_name }}" == "push" ]; then | |
| if [[ "${{ github.ref }}" == refs/tags/* ]]; then | |
| echo "tag" > event.txt | |
| tagInfo=$(echo "${{ github.ref }}" | sed 's/refs\/tags\///') | |
| echo "$tagInfo" > tag_name.txt | |
| echo "TAG_NAME=$tagInfo" >> $GITHUB_ENV | |
| else | |
| echo "push" > event.txt | |
| echo "TAG_NAME=latest" >> $GITHUB_ENV | |
| fi | |
| fi | |
| - name: Save event type info | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: event | |
| path: event.txt | |
| compression-level: 0 | |
| - name: Save tag name info | |
| if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: tag_name | |
| path: tag_name.txt | |
| compression-level: 0 | |
| - name: Save branch name info | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: branch_name | |
| path: branch_name.txt | |
| compression-level: 0 | |
| - name: Save commit id info | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: commit_id | |
| path: commit_id.txt | |
| compression-level: 0 |