2023-10-05 22:27:25 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-10-01 14:18:10 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
2023-10-06 21:04:10 +02:00
|
|
|
runs-on: docker
|
2023-10-01 14:18:10 +02:00
|
|
|
steps:
|
2023-10-06 21:19:34 +02:00
|
|
|
- run: |
|
2023-10-06 21:22:15 +02:00
|
|
|
apt-get update
|
2023-10-06 21:23:43 +02:00
|
|
|
apt-get install -y git
|
2023-10-05 22:40:20 +02:00
|
|
|
- uses: actions/checkout@v3
|
2023-10-05 22:27:25 +02:00
|
|
|
- uses: actions/setup-go@v4
|
|
|
|
with:
|
2023-10-06 21:26:16 +02:00
|
|
|
go-version-file: ./go.mod
|
2023-10-01 14:22:40 +02:00
|
|
|
- run: |
|
2023-10-01 14:18:10 +02:00
|
|
|
go generate
|
2023-10-06 21:27:35 +02:00
|
|
|
go build -o spaceapi ./cmd/server.go
|
2023-10-01 14:18:10 +02:00
|
|
|
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: spaceapi
|
|
|
|
path: spaceapi
|