mirror of https://github.com/Superioz/aqua.git
Add server binary to release
This commit is contained in:
parent
a2d81d3c66
commit
1f26fdf87e
|
@ -1,4 +1,4 @@
|
|||
name: Docker
|
||||
name: Publish Docker image
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
name: Release binaries
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
name: Upload CLI binaries to release
|
||||
jobs:
|
||||
generate:
|
||||
name: Create release-artifacts
|
||||
|
@ -9,16 +9,26 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@master
|
||||
- name: Build for windows/amd64
|
||||
- name: Build CLI for windows/amd64
|
||||
env:
|
||||
GOOS: windows
|
||||
GOARCH: amd64
|
||||
run: CGO_ENABLED=0 go build -o aq-$GOOS-$GOARCH ./cmd/aqcli/
|
||||
- name: Build for linux/amd64
|
||||
run: CGO_ENABLED=0 go build -o aq-cli-$GOOS-$GOARCH.exe ./cmd/aqcli/
|
||||
- name: Build CLI for linux/amd64
|
||||
env:
|
||||
GOOS: linux
|
||||
GOARCH: amd64
|
||||
run: CGO_ENABLED=0 go build -o aq-$GOOS-$GOARCH ./cmd/aqcli/
|
||||
run: CGO_ENABLED=0 go build -o aq-cli-$GOOS-$GOARCH ./cmd/aqcli/
|
||||
- name: Build server for windows/amd64
|
||||
env:
|
||||
GOOS: windows
|
||||
GOARCH: amd64
|
||||
run: CGO_ENABLED=0 go build -o aq-$GOOS-$GOARCH.exe ./cmd/aqua/
|
||||
- name: Build server for linux/amd64
|
||||
env:
|
||||
GOOS: linux
|
||||
GOARCH: amd64
|
||||
run: CGO_ENABLED=0 go build -o aq-$GOOS-$GOARCH ./cmd/aqua/
|
||||
- name: Upload the artifacts
|
||||
uses: skx/github-action-publish-binaries@master
|
||||
env:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
on: [push, pull_request]
|
||||
name: Test
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
test:
|
||||
strategy:
|
||||
|
|
Loading…
Reference in New Issue