diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 44ad40e..e6f72a2 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -13,10 +13,12 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Set up go + + - name: Setup go uses: https://github.com/actions/setup-go@v5 with: - go-version: '>=1.20.1' + go-version: '>=1.23.0' + - name: Get dependencies run: >- sudo apt-get update && @@ -25,10 +27,12 @@ jobs: pkg-config libacl1-dev if: ${{ runner.os == 'Linux' }} + - name: Build for Linux run: >- sh -c "go build -v -ldflags '-s -w -X main.Version=${{ github.ref_name }}' -o bin/fortify && sha256sum --tag -b bin/fortify > bin/fortify.sha256" + - name: Release id: use-go-action uses: https://gitea.com/actions/release-action@main