Skip to content

Commit

Permalink
ci: repair publication of the binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Tchoupinax committed Aug 12, 2024
1 parent 665df3a commit f6ad0fe
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/build-binary.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build binary

on:
pull_request:
branches:

jobs:
build-binary:
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: v2.1.0
args: build --snapshot
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.
File renamed without changes.

0 comments on commit f6ad0fe

Please sign in to comment.