24 lines
522 B
YAML
24 lines
522 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
- run: |
|
|
apt-get update
|
|
apt-get install -y git
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-go@v4
|
|
with:
|
|
go-version-file: ./go.mod
|
|
- run: |
|
|
apt-get install -y wget bash
|
|
./generate-spaceapi-types.sh
|
|
go build -o spaceapi ./cmd/server.go
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: spaceapi
|
|
path: spaceapi
|