okospaceapi/.forgejo/workflows/build.yaml

20 lines
417 B
YAML
Raw Normal View History

2023-10-01 14:18:10 +02:00
on: [push]
jobs:
build:
runs-on: docker
container:
image: golang:alpine
steps:
- uses: actions/checkout@v4
2023-10-01 14:20:59 +02:00
name: Checkout and build
2023-10-01 14:18:10 +02:00
run: |
apk add --no-cache git
go generate
go build cmd/server.go -o spaceapi
- uses: actions/upload-artifact@v2
2023-10-01 14:20:59 +02:00
name: Upload artifact
2023-10-01 14:18:10 +02:00
with:
name: spaceapi
path: spaceapi