fix hive config #28
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
| name: Build Hive | |
| on: | |
| push: | |
| branches: [ branch-3.1.patch, branch-2.3.patch ] | |
| pull_request: | |
| branches: [ branch-3.1.patch, branch-2.3.patch ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 8 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '8' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Cache Maven packages | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Build with Maven | |
| run: mvn clean package -Pdist -DskipTests | |
| - name: Generate SHA256 checksum | |
| run: | | |
| cd packaging/target | |
| sha256sum apache-hive-3.1.3-bin.tar.gz > apache-hive-3.1.3-bin.tar.gz.sha256 | |
| - name: Upload to Release | |
| if: github.event_name == 'push' | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: 3.1.3 | |
| files: | | |
| packaging/target/apache-hive-3.1.3-bin.tar.gz | |
| packaging/target/apache-hive-3.1.3-bin.tar.gz.sha256 | |
| draft: false | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |