18 lines
354 B
YAML
18 lines
354 B
YAML
|
on: [push]
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: docker
|
||
|
container:
|
||
|
image: golang:alpine
|
||
|
steps:
|
||
|
- uses: actions/checkout@v4
|
||
|
run: |
|
||
|
apk add --no-cache git
|
||
|
go generate
|
||
|
go build cmd/server.go -o spaceapi
|
||
|
|
||
|
- uses: actions/upload-artifact@v2
|
||
|
with:
|
||
|
name: spaceapi
|
||
|
path: spaceapi
|