Skip to content

Add xAI OAuth login and CLI session resume. #5

Add xAI OAuth login and CLI session resume.

Add xAI OAuth login and CLI session resume. #5

Workflow file for this run

name: Release
on:
push:
tags: ["v*"]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- goos: linux
goarch: amd64
- goos: linux
goarch: arm64
- goos: darwin
goarch: amd64
- goos: darwin
goarch: arm64
steps:
- uses: actions/checkout@v5
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: "0"
VERSION: ${{ github.ref_name }}
run: |
VERSION="${VERSION#v}"
name="zeta-${VERSION}-${GOOS}-${GOARCH}"
go build -trimpath \
-ldflags "-s -w -X github.com/axispx/zeta/internal/version.Version=${VERSION}" \
-o "dist/${name}" ./cmd/zeta
echo "artifact=${name}" >> "$GITHUB_ENV"
- uses: actions/upload-artifact@v4
with:
name: ${{ env.artifact }}
path: dist/${{ env.artifact }}
if-no-files-found: error
release:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
path: dist
merge-multiple: true
- name: Checksums
working-directory: dist
run: sha256sum zeta-* | tee SHA256SUMS
- uses: softprops/action-gh-release@v2
with:
files: dist/*
generate_release_notes: true