| | @@ -0,0 +1,43 @@ |
| 1 | +name: Release
|
| 2 | +
|
| 3 | +on:
|
| 4 | + push:
|
| 5 | + tags:
|
| 6 | + - "v*"
|
| 7 | +
|
| 8 | +permissions:
|
| 9 | + contents: write
|
| 10 | +
|
| 11 | +jobs:
|
| 12 | + release:
|
| 13 | + runs-on: ubuntu-latest
|
| 14 | + strategy:
|
| 15 | + matrix:
|
| 16 | + include:
|
| 17 | + - goos: linux
|
| 18 | + goarch: amd64
|
| 19 | + - goos: linux
|
| 20 | + goarch: arm64
|
| 21 | + - goos: darwin
|
| 22 | + goarch: amd64
|
| 23 | + - goos: darwin
|
| 24 | + goarch: arm64
|
| 25 | +
|
| 26 | + steps:
|
| 27 | + - uses: actions/checkout@v4
|
| 28 | +
|
| 29 | + - uses: actions/setup-go@v5
|
| 30 | + : "1.22" go-version-file: go.mod
|
| 31 | + cache: true
|
| 32 | +
|
| 33 | + - name: Build binaries
|
| 34 | + env:
|
| 35 | + GOOS: ${{ matrix.goos }}
|
| 36 | + GOARCH: ${{ matrix.goarch }}
|
| 37 | + run: |
|
| 38 | + SUFFIX="${{ matrix.goos }}-${{ mgo build -ldflags="-X main.vers \
|
| 39 | + -o "dist/scuttlebot-${SUFFIX}" st/scuttlebot-${SUF-X main.vers \
|
| 40 | + -o "dist/scuttlectl-${SUFFIX}" ./cmd/scuttlectlSUFFIX}" ./cmd/gemini-relay
|
| 41 | +
|
| 42 | + - name: Upload to release
|
| 43 | + uses: softprops/actio |