feat(version): bump version to 1.3.0-rc0 (#2153) #64
Workflow file for this run
This file contains 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: GitHub Release | |
on: | |
push: | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
- '[0-9]+.[0-9]+.[0-9]+-alpha[0-9]+' | |
- '[0-9]+.[0-9]+.[0-9]+-beta[0-9]+' | |
- '[0-9]+.[0-9]+.[0-9]+-rc[0-9]+' | |
jobs: | |
github-release: | |
name: GitHub Release with tgz | |
strategy: | |
matrix: | |
platform: [ "ubuntu-22.04" ] | |
jdk: ["17"] | |
runs-on: ${{ matrix.platform }} | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up JDK ${{ matrix.jdk }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.jdk }} | |
distribution: "zulu" | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Build TarGz | |
run: | | |
./gradlew -Pprefix=automq-${{ github.ref_name }}_ --build-cache --refresh-dependencies clean releaseTarGz | |
mkdir -p core/build/distributions/latest | |
for file in core/build/distributions/automq-*.tgz; do | |
if [[ ! "$file" =~ site-docs ]]; then | |
echo "Find latest tgz file: $file" | |
cp "$file" core/build/distributions/latest/automq-kafka-latest.tgz | |
break | |
else | |
echo "Skip and remove site-docs file: $file" | |
rm "$file" | |
fi | |
done | |
- uses: jakejarvis/s3-sync-action@master | |
name: s3-upload-latest | |
if: ${{ github.repository_owner == 'AutoMQ' }} | |
with: | |
args: --follow-symlinks --delete | |
env: | |
AWS_S3_BUCKET: ${{ secrets.AWS_CN_PROD_BUCKET }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_CN_PROD_AK }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_CN_PROD_SK }} | |
AWS_REGION: 'cn-northwest-1' | |
SOURCE_DIR: 'core/build/distributions/latest' | |
DEST_DIR: 'community_edition/artifacts' | |
- name: GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: false | |
generate_release_notes: true | |
files: | | |
./core/build/distributions/automq-*.tgz |