github.com/crowdsecurity/crowdsec@v1.6.1/.github/workflows/publish-tarball-release.yml (about) 1 # .github/workflows/build-docker-image.yml 2 name: Release 3 4 on: 5 release: 6 types: 7 - prereleased 8 9 permissions: 10 # Use write for: hub release edit 11 contents: write 12 13 jobs: 14 build: 15 name: Build and upload binary package 16 runs-on: ubuntu-latest 17 steps: 18 19 - name: Check out code into the Go module directory 20 uses: actions/checkout@v4 21 with: 22 fetch-depth: 0 23 submodules: false 24 25 - name: "Set up Go" 26 uses: actions/setup-go@v5 27 with: 28 go-version: "1.21.9" 29 30 - name: Build the binaries 31 run: | 32 sudo apt -qq -y -o=Dpkg::Use-Pty=0 install build-essential libre2-dev 33 make vendor release BUILD_STATIC=1 34 35 - name: Upload to release 36 env: 37 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 38 run: | 39 tag_name="${GITHUB_REF##*/}" 40 gh release upload "$tag_name" crowdsec-release.tgz vendor.tgz *-vendor.tar.xz