Skip to content

Merge pull request #122 from shamanec/handle-landscape #34

Merge pull request #122 from shamanec/handle-landscape

Merge pull request #122 from shamanec/handle-landscape #34

Workflow file for this run

name: GADS UI CI
on:
push:
tags:
- '*'
jobs:
build_and_release:
runs-on: macos-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Build UI static files
env:
CI: false
run: |
cd hub/gads-ui && npm install && REACT_APP_VERSION=${{ github.ref_name }} npm run build --verbose
- name: Build binaries
run: |
go get
echo "Preparing Windows binary"
GOOS=windows GOARCH=amd64 go build -ldflags="-X 'main.AppVersion=${{ github.ref_name}} '" -o GADS.exe .
zip -j gads-win.zip GADS.exe
rm GADS.exe
echo "Preparing macOS amd64 binary"
GOOS=darwin GOARCH=amd64 go build -ldflags="-X 'main.AppVersion=${{ github.ref_name}} '" -o GADS .
zip -j gads-mac-amd64.zip GADS
rm GADS
echo "Preparing macOS arm64 binary"
GOOS=darwin GOARCH=arm64 go build -ldflags="-X 'main.AppVersion=${{ github.ref_name}} '" -o GADS .
zip -j gads-mac-arm64.zip GADS
rm GADS
echo "Preparing Linux binary"
GOOS=linux GOARCH=amd64 go build -ldflags="-X 'main.AppVersion=${{ github.ref_name}} '" -o GADS .
zip -j gads-linux.zip GADS
rm GADS
- uses: AButler/[email protected]
with:
files: '*.zip'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: ${{ github.ref_name }}