diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-12-17 14:02:54 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-12-17 14:02:54 +0900 |
| commit | b5cbbeab9091c592bcbb09a6365de1bc0bb58d7f (patch) | |
| tree | f2aaaceed3189e5cac06d6d75ddacb49eb91fa55 /.gitea | |
| parent | c3ba0c3cce4548e6b3fc78bbc482493623ce4c01 (diff) | |
dist: generate distribution tarball
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to '.gitea')
| -rw-r--r-- | .gitea/workflows/release.yml | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index f92a0eae..545274db 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -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}}' |
