-
Notifications
You must be signed in to change notification settings - Fork 75
49 lines (45 loc) · 1.35 KB
/
publish_binary.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
name: Publish binaries
on:
release:
types: [prereleased]
jobs:
build:
name: Publish binaries
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v2-beta
with:
node-version: '10'
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
- name: Build with Gradle
run: ./gradlew assemble
- name: Download plugin
run: cd dist/ && bash download_plugin.sh ALL v1.3.0 && bash download_pages.sh v1.3.0 && rm -rf src && cd -
- name: Pack
run: chmod +x dist/*.sh && mv dist WeCross && tar -zcvf WeCross.tar.gz WeCross
- name: Checksum
run: md5sum WeCross.tar.gz > WeCross.tar.gz.md5
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: WeCross.tar.gz
asset_name: WeCross.tar.gz
tag: ${{ github.ref }}
overwrite: true
- name: Upload checksum to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: WeCross.tar.gz.md5
asset_name: WeCross.tar.gz.md5
tag: ${{ github.ref }}
overwrite: true