Skip to content
name: Publish cross-compile binaries on Release
on:
release:
types: [created]
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- name: Get dependencies
run: |
docker build -t myrepo:latest -f Dockerfile-crossplatform .
id=$(docker create myrepo:latest)
docker cp $id:/ /tmp/bin
- name: Upload Linux binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /tmp/bin/*.bin
file_glob: true
tag: ${{ github.ref }}
overwrite: true