Add a forgejo workflow
This commit is contained in:
parent
fd43ebf6e9
commit
12ffff46bb
1 changed files with 17 additions and 0 deletions
17
.forgejo/workflows/build.yaml
Normal file
17
.forgejo/workflows/build.yaml
Normal file
|
@ -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
|
Loading…
Reference in a new issue