dist: generate distribution tarball
All checks were successful
Tests / Go tests (push) Successful in 46s
Create distribution / Release (push) Successful in 49s
Nix / NixOS tests (push) Successful in 5m9s

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-12-17 14:02:54 +09:00
parent c3ba0c3cce
commit b5cbbeab90
5 changed files with 38 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
name: Release
name: Create distribution
on:
push:
@@ -41,21 +41,13 @@ jobs:
run: >-
go generate ./...
- name: Build for Linux
run: >-
go build -v -ldflags '-s -w
-X git.ophivana.moe/security/fortify/internal.Version=${{ github.ref_name }}
-X git.ophivana.moe/security/fortify/internal.Fsu=/usr/bin/fsu
-X git.ophivana.moe/security/fortify/internal.Finit=/usr/libexec/fortify/finit
-X main.Fmain=/usr/bin/fortify
-X main.Fshim=/usr/libexec/fortify/fshim'
-o bin/ ./... &&
(cd bin && sha512sum --tag -b * > sha512sums)
- name: Build for release
run: FORTIFY_VERSION='${{ github.ref_name }}' ./dist/release.sh
- name: Release
id: use-go-action
uses: https://gitea.com/actions/release-action@main
with:
files: |-
bin/**
dist/fortify-**
api_key: '${{secrets.RELEASE_TOKEN}}'