Skip to content

Rework release flow #35

Rework release flow

Rework release flow #35

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:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Disable the build since we use the Bazel CI for it anyways. We were also hitting issues with
# the disks on the Github runner being too small for the build
# - name: Test
# run: bazel test //...
- name: Build release artifacts and prepare release notes
run: |
.github/workflows/release_prep.sh ${{ env.GITHUB_REF_NAME }} > release_notes.txt
- name: Release
uses: softprops/action-gh-release@v1
with:
prerelease: false
# Use GH feature to populate the changelog automatically
generate_release_notes: true
body_path: release_notes.txt
fail_on_unmatched_files: true
files: rules_dotnet-*.tar.gz