Skip to content

Merge pull request #2 from sanda0:add-host-to-mysql-dump #9

Merge pull request #2 from sanda0:add-host-to-mysql-dump

Merge pull request #2 from sanda0:add-host-to-mysql-dump #9

Workflow file for this run

name: Build and Release Linodsync Binary
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: Build Static Linux Binary
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.22.2"
- name: Install dependencies
run: go mod tidy
- name: Build static binary for Linux amd64
run: |
mkdir -p build
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o build/linodsync
- name: Upload release assets
uses: softprops/action-gh-release@v1
with:
files: build/linodsync
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}