-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1 KB
/
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
name: Release
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
env:
XDG_CACHE_HOME: ~/.cache/bazel-repo
steps:
- uses: actions/checkout@v4
- name: Mount bazel caches
uses: actions/cache@v3
with:
path: |
~/.cache/bazel
~/.cache/bazel-repo
key: bazel-cache-${{ hashFiles('**/BUILD.bazel', '**/*.bzl', 'WORKSPACE') }}
restore-keys: bazel-cache-
- name: Test
run: >
bazel
--bazelrc=${{ github.workspace }}/.bazelrc
--bazelrc=${{ github.workspace }}/.github/workflows/ci.bazelrc
test //...
- name: Create Artifact
run: .github/workflows/release.sh
- name: Create Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
files: |
sqids-bazel-*.tar.gz
body_path: release.md
fail_on_unmatched_files: true