v0.0.11 #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build-binary-package | |
on: | |
release: | |
types: [prereleased] | |
permissions: | |
# Use write for: hub release edit | |
contents: write | |
env: | |
PROGRAM_NAME: crowdsec-cloudflare-worker-bouncer | |
jobs: | |
build: | |
name: Build and upload all platforms | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
- name: Build all versions | |
run: | | |
make platform-all | |
- name: Upload to release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
tag_name="${GITHUB_REF##*/}" | |
gh release upload "$tag_name" $PROGRAM_NAME* |