Skip to content

🐛 fix(parser): handle deduplicate commit messsage #78

🐛 fix(parser): handle deduplicate commit messsage

🐛 fix(parser): handle deduplicate commit messsage #78

Workflow file for this run

name: Build
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build:
name: Build Binary
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
lfs: true # Fetch LFS files if needed
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build
shell: bash
run: |
VERSION=$(git describe --tags --always --dirty 2>/dev/null || echo "dev")
COMMIT=$(git rev-parse --short HEAD 2>/dev/null || echo "none")
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
go build -v -ldflags "-X github.com/anIcedAntFA/gohome/internal/version.Version=$VERSION -X github.com/anIcedAntFA/gohome/internal/version.Commit=$COMMIT -X github.com/anIcedAntFA/gohome/internal/version.Date=$BUILD_DATE" ./cmd/gohome
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: gohome-${{ matrix.os }}
path: gohome*