From 27a3e831d873e509ee77d30df18d4572aeb45182 Mon Sep 17 00:00:00 2001 From: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com> Date: Thu, 14 May 2026 23:13:32 -0700 Subject: [PATCH] Automate releases Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com> --- .github/workflows/release.yml | 49 +++++++++++++++++++++++++++++++++++ RELEASE.md | 47 ++++++++++++++++++--------------- 2 files changed, 75 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..e56d2cef6 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,49 @@ +name: Release +on: + push: + tags: + - 'v*' +permissions: + contents: write +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-go@v5 + with: + go-version: 1.25 + - name: Login to Quay.io + uses: docker/login-action@v3 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + - name: Prepare release notes + run: | + TAG=${GITHUB_REF#refs/tags/} + VERSION=${TAG#v} + NOTES_FILE=changelogs/${TAG}.md + if [ ! -f "${NOTES_FILE}" ]; then + echo "Release notes file ${NOTES_FILE} not found" + exit 1 + fi + cp "${NOTES_FILE}" /tmp/release-notes.md + cat >> /tmp/release-notes.md <