-
Notifications
You must be signed in to change notification settings - Fork 231
50 lines (43 loc) · 1.31 KB
/
github-nightly-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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