Skip to content

Drop non bzlmod support (#200) #83

Drop non bzlmod support (#200)

Drop non bzlmod support (#200) #83

Workflow file for this run

# Cut a release whenever a new tag is pushed to the repo.
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
build:
runs-on: ubuntu-latest
env:
repoUrl: ${{ github.server_url }}/${{ github.repository }}
outputDir: ${{ github.workspace }}/bazel-snapshots-${{ github.ref_name }}
sourceTarName: snapshots-${{ github.ref_name }}.tar
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Mount bazel cache
uses: actions/cache@v4
with:
path: "/home/runner/.cache/bazel"
key: bazel
- name: Run tests
run: |
bazel test //...
- name: Build binaries
run: |
bazel build //snapshots/go/cmd/snapshots:snapshots
bazel run //tools:release -- ${{ env.repoUrl }} ${{ github.ref_name }} ${{ env.outputDir }}
- name: Prepare import snippets
run: |
bash .github/scripts/import_snippets.sh ${{ env.outputDir }}/${{ env.sourceTarName }} > release-notes.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
generate_release_notes: true
body_path: release-notes.txt
files: |
${{ env.outputDir }}/snapshots-*