From 95e9e23f0db795a8b7ddd238153f8342ece5a374 Mon Sep 17 00:00:00 2001 From: profitroll Date: Fri, 14 Apr 2023 14:29:42 +0200 Subject: [PATCH] Added action on push --- .gitea/workflows/default.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .gitea/workflows/default.yaml diff --git a/.gitea/workflows/default.yaml b/.gitea/workflows/default.yaml new file mode 100644 index 0000000..1ceeba1 --- /dev/null +++ b/.gitea/workflows/default.yaml @@ -0,0 +1,14 @@ +name: Build the API +on: [push] +env: + GIN_MODE: release +jobs: + build: + needs: [test] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: "1.20" + check-latest: true + - run: go build -ldflags "-s -w" \ No newline at end of file