Skip to content

Commit

Permalink
Build action fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lkarlslund committed Feb 27, 2025
1 parent 04a9685 commit 37a8a08
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ jobs:
run: ./build.ps1
shell: pwsh

- name: Create tag "devbuild" for current commit
uses: hole19/git-tag-action@master
if: startsWith(github.ref, 'refs/tags/') != true
env:
TAG: "devbuild"

- name: Remove latest devbuild
uses: liudonghua123/delete-release-action@v1
with:
release_name: "devbuild"

- name: Pre-release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') != true
Expand Down
5 changes: 4 additions & 1 deletion build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ function BuildVariants {

if (Get-Command "cyclonedx-gomod" -ErrorAction SilentlyContinue)
{
$sbom = "binaries/$prefix-$currentos-$namearch-$VERSION$suffix.bom.json"
if (!(Test-Path $sbom)) {
Write-Output "Generating $prefix SBOM for $currentos-$namearch..."
cyclonedx-gomod app -json -licenses -output binaries/$prefix-$currentos-$namearch-$VERSION$suffix.bom.json -main $path .
cyclonedx-gomod app -json -licenses -output $sbom -main $path .
}
}
}
}
Expand Down

0 comments on commit 37a8a08

Please sign in to comment.