From 0e925ec746f02a586478ecd0dc9c65afbd9b1a6a Mon Sep 17 00:00:00 2001 From: deck Date: Thu, 9 Jul 2026 16:10:25 +0200 Subject: [PATCH] =?UTF-8?q?.gitea/workflows/build.yml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..145a5c9 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,29 @@ +name: Build and Bundle Gleam App +run-name: ${{ gitea.actor }} pushed a commit + +on: + push: + branches: + - "**" # Triggers on every commit to any branch + +jobs: + build-and-bundle: + runs-on: ubuntu-latest + container: + # Replace this with the path to the image you built and pushed + image: jaypoch/lumabuilder:latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Build Gleam to JavaScript + run: gleam build --target javascript + + - name: Bundle with esbuild + run: | + npx esbuild build/dev/javascript/markdown2/markdown2.mjs \ + --bundle \ + --outfile=parser.js \ + --format=iife \ + --global-name=App