From 11b4eefc47d0303ad4f053d3351f537bb72cc43d Mon Sep 17 00:00:00 2001 From: Aaron Fischer Date: Thu, 5 Oct 2023 22:27:25 +0200 Subject: [PATCH] Update .forgejo/workflows/build.yaml --- .forgejo/workflows/build.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 2019aba..40f8d73 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -1,9 +1,15 @@ -on: [push] +on: + push: + branches: + - main jobs: build: runs-on: docker steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version-file: ${{ GITHUB_WORKSPACE }}/go.mod - run: | go generate go build cmd/server.go -o spaceapi