Skip to content

Workflow file for this run

name: Publish binaries on Release
on:
release:
types: [created]
jobs:
build:
name: Build
runs-on: ubuntu-24.04
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: |
docker build -t myrepo:latest -f Dockerfile .
id=$(docker create myrepo:latest)
docker cp $id:/tmp/tcpshark/tcpshark-linux-amd64.bin /tmp/tcpshark-linux-amd64.bin
docker cp $id:/tmp/tcpshark/tcpshark-windows-amd64.exe /tmp/tcpshark-windows-amd64.exe
- name: Upload Linux binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /tmp/tcpshark-linux-amd64.bin
asset_name: tcpshark-static-musl-linux.bin
tag: ${{ github.ref }}
overwrite: true
body: ""
- name: Upload Windows binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: /tmp/tcpshark-windows-amd64.exe
asset_name: tcpshark-windows-amd64.exe
tag: ${{ github.ref }}
overwrite: true
body: ""