Nightly Release AutoMQ #30
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: Nightly Release AutoMQ | |
on: | |
workflow_dispatch: | |
schedule: | |
# Every day at 20:00 UTC, which is 04:00 in Beijing time | |
- cron: '0 20 * * *' | |
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: Push Tag | |
uses: cardinalby/git-tag-action@master | |
env: | |
TAG: nightly | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Gradle | |
uses: gradle/[email protected] | |
- name: Build TarGz | |
run: ./gradlew -Pprefix=automq-nightly_ --build-cache --refresh-dependencies clean releaseTarGz | |
- name: GitHub Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: nightly | |
generate_release_notes: false | |
draft: false | |
prerelease: true | |
body: "Automated nightly release, will be updated every day at 20:00 UTC" | |
files: | | |
./core/build/distributions/automq-*.tgz |