From df2ff6e8a9db5803dcf22fbc47323bceb603d9ef Mon Sep 17 00:00:00 2001 From: Kent Yao Date: Tue, 8 Mar 2022 09:42:28 +0800 Subject: [PATCH] [KYUUBI #1955] Add CI for branch-1.5 & 1.4 SNAPSHOTS ### _Why are the changes needed?_ branch-1.5 & 1.4 snapshots are missing ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #2051 from yaooqinn/1955. Closes #1955 693c79b1 [Kent Yao] Add CI for branch-1.5 & 1.4 SNAPSHOTS Authored-by: Kent Yao Signed-off-by: ulysses-you --- .github/workflows/publish-snapshot.yml | 31 ++++++++------------------ 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml index b0811e952..b770173b4 100644 --- a/.github/workflows/publish-snapshot.yml +++ b/.github/workflows/publish-snapshot.yml @@ -30,39 +30,26 @@ jobs: matrix: branch: - master + - branch-1.5 + - branch-1.4 - branch-1.3 + profiles: + - -Pflink-provided,spark-provided,spark-3.1 + - -Pflink-provided,spark-provided,spark-3.2,tpcds steps: - name: Checkout repository uses: actions/checkout@v2 with: ref: ${{ matrix.branch }} - - name: Cache Maven local repository - uses: actions/cache@v2 - with: - path: ~/.m2/repository - key: snapshot-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - snapshot-maven- - name: Setup JDK 8 uses: actions/setup-java@v2 with: distribution: zulu java-version: 8 - - name: Publish snapshot - master - if: ${{ matrix.branch == 'master' }} + cache: 'maven' + check-latest: false + - name: Publish snapshot - ${{ matrix.branch }} env: ASF_USERNAME: ${{ secrets.NEXUS_USER }} ASF_PASSWORD: ${{ secrets.NEXUS_PW }} - run: | - rm -rf ~/.m2/repository/org/apache/kyuubi - ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests -Pflink-provided,spark-provided - ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests -Pflink-provided,spark-provided,spark-3.1 -pl dev/kyuubi-extension-spark-3-1 -am - ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests -Pflink-provided,spark-provided,spark-3.2 -pl dev/kyuubi-extension-spark-3-2 -am - - name: Publish snapshot - branch-1.3 - if: ${{ matrix.branch == 'branch-1.3' }} - env: - ASF_USERNAME: ${{ secrets.NEXUS_USER }} - ASF_PASSWORD: ${{ secrets.NEXUS_PW }} - run: | - rm -rf ~/.m2/repository/org/apache/kyuubi - ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests -Pflink-provided,spark-provided,kyuubi-extension-spark-3-1 + run: ./build/mvn clean deploy -s ./build/release/asf-settings.xml -DskipTests ${{ matrix.profiles }}