okospaceapi/.forgejo/workflows/build.yaml

21 lines
413 B
YAML
Raw Normal View History

2023-10-05 22:27:25 +02:00
on:
push:
branches:
- main
2023-10-01 14:18:10 +02:00
jobs:
build:
runs-on: docker
steps:
2023-10-02 23:23:28 +02:00
- uses: actions/checkout@v4
2023-10-05 22:27:25 +02:00
- uses: actions/setup-go@v4
with:
go-version-file: ${{ GITHUB_WORKSPACE }}/go.mod
2023-10-01 14:22:40 +02:00
- run: |
2023-10-01 14:18:10 +02:00
go generate
go build cmd/server.go -o spaceapi
- uses: actions/upload-artifact@v2
with:
name: spaceapi
path: spaceapi