forked from sing1ee/elasticsearch-jieba-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 972 Bytes
/
release.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: Create release and upload binaries
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]*"
workflow_dispatch:
permissions:
contents: write
jobs:
github_build:
name: Build release binaries
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 11
- name: Build with Gradle
run: |
java -version
chmod +x gradlew
./gradlew clean pz
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: release-artifacts
path: build/distributions
- name: Add Artifacts to Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: release-artifacts/*.zip