From 967ca7651a862b201e631eb25cb020aa840023bc Mon Sep 17 00:00:00 2001 From: 2mal3 <56305732+2mal3@users.noreply.github.com> Date: Sun, 17 Aug 2025 13:36:56 +0200 Subject: [PATCH] ci: display build --- .github/workflows/build.yml | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..32d412b --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,39 @@ +name: Build + +on: + push: + paths: + - go.mod + - go.sum + - "**/*.go" + - "**/*.tmpl" + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Go + uses: actions/setup-go@v5 + with: + go-version: "^1.24" + + - name: Install Dependencies + working-directory: display + run: go mod download + + - name: Generate Templates + working-directory: display + run: go tool templ generate + + - name: Build + working-directory: display + run: go build -o plg-mudics-display . + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + path: display/plg-mudics-display