bzlmod: adding basic lock file support #15
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. | |
# 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 | |
# Keep a disk-cache | |
disk-cache: true | |
# Share repository cache between workflows. | |
repository-cache: true | |
# enable some flags for CI | |
bazelrc: | | |
import %workspace%/.aspect/workflows/ci.bazelrc | |
import %workspace%/.github/workflows/ci.bazelrc | |
# keep a cache for MODULE.bazel repos | |
external-cache: true | |
- name: Build Binaries | |
run: .github/workflows/build_assets.sh | |
- 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 |