Skip to content

ci: test

ci: test #1

Workflow file for this run

name: Build binary
on:
pull_request:
branches:
- *

Check failure on line 6 in .github/workflows/build-binary.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-binary.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: vars
run: |
echo ::set-output name=go_version::$(cat go.mod | head -3 | tail -1 | cut -d ' ' -f 2)
echo "Using Go version ${{ steps.vars.outputs.go_version }}"
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ steps.vars.outputs.go_version }}
- name: Compile the source
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: build --rm-dist --skip-validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}