mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-25 11:32:33 +00:00
29 lines
782 B
YAML
29 lines
782 B
YAML
# Cut a release whenever a new tag is pushed to the repo.
|
|
# You should use an annotated tag, like `git tag -a v1.2.3`
|
|
# and put the release notes into the commit message for the tag.
|
|
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- uses: bazelbuild/setup-bazelisk@v1
|
|
- name: bazel test //...
|
|
env:
|
|
# Bazelisk will download bazel to here
|
|
XDG_CACHE_HOME: ~/.cache/bazel-repo
|
|
run: bazel --bazelrc=.github/workflows/ci.bazelrc --bazelrc=.bazelrc test //...
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
prerelease: true
|
|
files: |
|
|
bazel-out/*/bin/*.tar.gz
|