From fe03ce1498f64a53ef2215e8740f3393a8636138 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Sun, 5 May 2024 19:42:07 +0100 Subject: [PATCH] Build Go using an action --- .gitea/workflows/build-and-copy.yaml | 15 +++++++++++++++ .gitignore | 1 + 2 files changed, 16 insertions(+) create mode 100644 .gitea/workflows/build-and-copy.yaml diff --git a/.gitea/workflows/build-and-copy.yaml b/.gitea/workflows/build-and-copy.yaml new file mode 100644 index 0000000..27e7712 --- /dev/null +++ b/.gitea/workflows/build-and-copy.yaml @@ -0,0 +1,15 @@ +name: Build and copy to prod +on: + push: +jobs: + build-and-copy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: 1.22 + - name: Build binary + run: go build -o dist/oopsie \ No newline at end of file diff --git a/.gitignore b/.gitignore index adf8f72..69c4728 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ # Go workspace file go.work +dist \ No newline at end of file