okospaceapi/.forgejo/workflows/build.yaml
Aaron Fischer fc05f3da0c
Some checks failed
/ build (push) Failing after 35s
Update .forgejo/workflows/build.yaml
2023-10-06 21:27:35 +02:00

23 lines
466 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: |
go generate
go build -o spaceapi ./cmd/server.go
- uses: actions/upload-artifact@v2
with:
name: spaceapi
path: spaceapi