forked from bazelbuild/rules_kotlin
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (44 loc) · 1.48 KB
/
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
name: Release Binary Package
on:
push:
tags:
- v*
jobs:
generate:
name: Create release-artifacts
runs-on: ubuntu-latest
steps:
- name: "Checkout the sources"
uses: actions/[email protected]
- name: Install JDK 11
uses: actions/setup-java@v3
with:
distribution: "zulu"
java-version: "11"
- name: Setup Bazelisk
uses: bazelbuild/setup-bazelisk@v1
- name: Mount bazel cache
uses: actions/cache@v2
with:
path: "/home/runner/.cache/bazel"
key: caches-${{ runner.os }}-release
- name: Build release artifact
run: bazelisk build //:rules_kotlin_release
- name: Create release sha256
run: shasum -a 256 bazel-bin/rules_kotlin_release.tgz > bazel-bin/rules_kotlin_release.tgz.sha256
- name: Upload bazel-bin/rules_kotlin_release.tgz
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bazel-bin/rules_kotlin_release.tgz
asset_name: rules_kotlin_release.tgz
tag: ${{ github.ref }}
overwrite: true
- name: Upload bazel-bin/rules_kotlin_release.tgz.sha256
uses: svenstaro/[email protected]
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: bazel-bin/rules_kotlin_release.tgz.sha256
asset_name: rules_kotlin_release.tgz.sha256
tag: ${{ github.ref }}
overwrite: true