kyuubi/.github/workflows/release.yml
ulysses-you 42d57e9bd8 [KYUUBI #636] Add kyuubi-extension-spark_3.1 in release script
<!--
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/NetEase/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.
-->
Make `kyuubi-extension-spark_3.1` module packaged during release.

### _How was this patch tested?_

Closes #636 from ulysses-you/release-script.

Closes #636

363f74b5 [ulysses-you] fix

Authored-by: ulysses-you <ulyssesyou18@gmail.com>
Signed-off-by: ulysses-you <ulyssesyou18@gmail.com>
2021-05-14 09:07:51 +08:00

68 lines
2.4 KiB
YAML

name: Release Kyuubi
on:
push:
tags:
- '*'
jobs:
build:
name: Create and Publish Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
# We split caches because GitHub Action Cache has a 400MB-size limit.
- uses: actions/cache@v1
with:
path: build
key: build-${{ hashFiles('**/pom.xml') }}
restore-keys: |
build-
- uses: actions/cache@v1
with:
path: ~/.m2/repository/com
key: ${{ matrix.scala }}-${{ matrix.hadoop }}-maven-com-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ matrix.scala }}-${{ matrix.hadoop }}-maven-com-
- uses: actions/cache@v1
with:
path: ~/.m2/repository/org
key: ${{ matrix.scala }}-${{ matrix.hadoop }}-maven-org-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ matrix.scala }}-${{ matrix.hadoop }}-maven-org-
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: '1.8'
- name: Make Distribution -Pspark-3.0 -Pspark-hadoop-2.7
run: ./build/dist --tgz -Pspark-3.0 -Pspark-hadoop-2.7
- name: Make Distribution -Pspark-3.0 -Pspark-hadoop-3.2
run: ./build/dist --tgz -Pspark-3.0 -Pspark-hadoop-3.2
- name: Make Distribution -Pspark-3.1 -Pspark-hadoop-2.7
run: ./build/dist --tgz -Pspark-3.1 -Pspark-hadoop-2.7 -Pkyuubi-extension-spark_3.1
- name: Make Distribution -Pspark-3.1 -Pspark-hadoop-3.2
run: ./build/dist --tgz -Pspark-3.1 -Pspark-hadoop-3.2 -Pkyuubi-extension-spark_3.1
- name: Make Distribution --spark-provided
run: ./build/dist --tgz --spark-provided -Pkyuubi-extension-spark_3.1
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release Kyuubi-${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["./kyuubi-*tar.gz"]'
- name: Update Release Note
id: github_release_changelog
uses: mikepenz/release-changelog-builder-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}