Skip to content

Build and Publish

Build and Publish #9

Workflow file for this run

name: Build and Publish
on: workflow_dispatch
jobs:
test:
strategy:
matrix:
go-version: [1.21.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Build Binaries
shell: bash
run:
./scripts/build-all-arch.sh
- name: Set version
run: VER=$(cat version.txt)
echo "VERSION=$VER" >> $GITHUB_ENV
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: release/atlas-*
tag: ${{ env.VERSION }}
overwrite: false
file_glob: true