Skip to content

hopefully fix #11 (#12) #2

hopefully fix #11 (#12)

hopefully fix #11 (#12) #2

Workflow file for this run

name: Build and release dbcli binary when a tag is created
on:
push:
tags:
- "v*"
jobs:
build-dbcli:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ vars.GO_VERSION }}
- name: Install dependencies
working-directory: ./backend
run: go get ./...
- name: Build bin/dbcli
working-directory: ./backend
run: make bin/dbcli
- name: Generate changelog
run: sed -n '/^## \[${{ github.ref }}\] .*/,/^## .*/{//!p}' CHANGELOG.md > CHANGELOG_${{ github.sha }}.md # extract relevant section from CHANGELOG.md
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ./backend/bin/dbcli
body_path: CHANGELOG_${{ github.sha }}.md