Skip to content

close issue #47 (#100) #15

close issue #47 (#100)

close issue #47 (#100) #15

Workflow file for this run

name: Build and release dbcli binary when a tag is created
on:
push:
tags:
- "v*"
permissions:
contents: write
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: touch .env && make bin/dbcli # makefile requires .env to exist
# - 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: See CHANGELOG.md
# body_path: CHANGELOG_${{ github.sha }}.md