From 9fad644d7a9604f31bce4f7096b899b848d8e626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Fri, 19 Dec 2025 15:42:38 -0600 Subject: [PATCH] feat: workflow --- .github/workflows/website-ue.yml | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/website-ue.yml diff --git a/.github/workflows/website-ue.yml b/.github/workflows/website-ue.yml new file mode 100644 index 000000000..e869ccc81 --- /dev/null +++ b/.github/workflows/website-ue.yml @@ -0,0 +1,55 @@ +name: Website UE + +on: + push: + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref == 'refs/heads/main' }} + +env: + WOTB_SERVER: ${{ secrets.WOTB_SERVER }} + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + submodules: recursive + token: ${{ secrets.GH_TOKEN }} + - uses: oven-sh/setup-bun@v2 + - uses: arduino/setup-protoc@v3 + with: + repo-token: ${{ secrets.GH_TOKEN }} + - uses: actions/configure-pages@v5 + - run: bun run setup + + - name: Build website + run: bun run build:website + + - name: Upload artifact + uses: actions/upload-pages-artifact@v4 + with: + path: dist/website + + deploy-github-pages: + if: ${{ github.ref == 'refs/heads/main' }} + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + needs: build + environment: + name: Production + url: ${{ steps.deployment.outputs.page_url }} + + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4