From 12ffff46bb1734e3bdc146e4779af93dd2dac88e Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Sun, 1 Oct 2023 14:18:10 +0200 Subject: [PATCH] Add a forgejo workflow --- .forgejo/workflows/build.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .forgejo/workflows/build.yaml diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..7ba139c --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,17 @@ +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