Skip to content

Fix code scanning alert no. 2: Arbitrary file access during archive e… #14

Fix code scanning alert no. 2: Arbitrary file access during archive e…

Fix code scanning alert no. 2: Arbitrary file access during archive e… #14

name: Build and Release
on:
push:
tags:
- "v*.*.*"
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install dependencies
run: go get .
- name: Build for Linux amd64
run: GOOS=linux GOARCH=amd64 go build -v -ldflags="-w -s" -o homedash-linux-amd64 .
- name: Build for Linux arm64
run: GOOS=linux GOARCH=arm64 go build -v -ldflags="-w -s" -o homedash-linux-arm64 .
- name: Set up Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: "Build Changelog"
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v5
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ./homedash-*
generate_release_notes: true
append_body: true
body: "${{steps.build_changelog.outputs.changelog}}"