23 lines
510 B
YAML
23 lines
510 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: ${{ GITHUB_WORKSPACE }}/okoyono-intern/spaceapi/go.mod
|
|
- run: |
|
|
go generate
|
|
go build cmd/server.go -o spaceapi
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: spaceapi
|
|
path: spaceapi
|