Drop non bzlmod support (#200) #83
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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-* |