From c6f53b6abc56abf93c645c8ae04f919c32a7e14d Mon Sep 17 00:00:00 2001 From: Jan Gottschick Date: Thu, 2 May 2024 18:41:38 +0200 Subject: [PATCH] Create Github actions to publish release files --- .github/workflows/go.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/go.yml diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml new file mode 100644 index 0000000..2c490f8 --- /dev/null +++ b/.github/workflows/go.yml @@ -0,0 +1,38 @@ +# This workflow will build the dredger packages +name: Go + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.22' + + - name: Set up tools + run: | + go install golang.org/x/tools/cmd/goimports@latest + go install github.com/a-h/templ/cmd/templ@latest + + - name: Templ + run: templ generate web/pages/*.templ + + - name: Build + run: go build -o dredger + + - name: Release linux binary + uses: Shopify/upload-to-release@v2.0.0 + with: + name: Linux Binary + path: dredger +