Skip to content

ci: adding bazel-7-bzlmod test #4

ci: adding bazel-7-bzlmod test

ci: adding bazel-7-bzlmod test #4

Workflow file for this run

# 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:
- uses: actions/checkout@v4
- uses: bazel-contrib/[email protected]
with:
# Avoid downloading Bazel every time.
bazelisk-cache: true
# Store build cache per workflow.
disk-cache: ${{ github.workflow }}
# Share repository cache between workflows.
repository-cache: true
bazelrc: import %workspace%/.github/workflows/ci.bazelrc
- name: Build Binaries
run: bazel run //tools/release
- uses: actions/upload-artifact@v4
with:
name: artifacts
path: tools/release/latest
retention-days: 1
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Fetch the built artifacts from build jobs above and extract into
# ${GITHUB_WORKSPACE}/artifacts/bazeldnf_dawrin-amd64
- uses: actions/download-artifact@v4
- name: Prepare release
run: .github/workflows/release_prep.sh > release_notes.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: true
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.txt
files: |
artifacts/*
bazeldnf-*.tar.gz
fail_on_unmatched_files: true