-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.17 KB
/
main.yaml
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
name: Package
on:
push
env:
BRANCH: 3.4.14
ZK_VERSION: 3.4.14
jobs:
package:
name: Package zookeeper
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
- run: |
echo "MAKE_ARGS=BUILD${GITHUB_RUN_NUMBER} ZOOKEEPER_VERSION=${ZK_VERSION} GITHUB_ENV=${GITHUB_ENV}" >> $GITHUB_ENV
- name: Build package
run: make package
- name: Get tag
run: make get-tag ${MAKE_ARGS} >> $GITHUB_ENV
- name: Push tag
run: |
git config user.email [email protected]
git config user.name BrandwatchBot
git tag -am "bw-zookeeper-build release: $RELEASE_TAG" $RELEASE_TAG
git push origin $RELEASE_TAG
- name: Release zookeeper pacakge
uses: softprops/action-gh-release@v1
with:
body: "Release for branch: ${{ env.BRANCH }}."
tag_name: ${{ env.RELEASE_TAG }}
files: |
build/zookeeper-${{ env.ZK_VERSION }}.tar.gz
repository: BrandwatchLtd/bw-zookeeper-build
token: ${{ secrets.BWBOT_BRANDWATCHLTD_GITHUB_TOKEN }}