[KYUUBI #1955] Add CI for branch-1.5 & 1.4 SNAPSHOTS
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html 2. If the PR is related to an issue in https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'. 3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'. --> ### _Why are the changes needed?_ <!-- Please clarify why the changes are needed. For instance, 1. If you add a feature, you can talk about the use case of it. 2. If you fix a bug, you can clarify why it is a bug. --> 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 <yao@apache.org> Signed-off-by: ulysses-you <ulyssesyou@apache.org>
This commit is contained in:
parent
9518724c46
commit
df2ff6e8a9
31
.github/workflows/publish-snapshot.yml
vendored
31
.github/workflows/publish-snapshot.yml
vendored
@ -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 }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user