From 5c88133691a6f1f35a353dc7fceccba72105e16b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Thu, 12 Mar 2026 09:54:52 +0100 Subject: [PATCH] build: Build website in release job --- .github/workflows/release.yaml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index f769ec3cc..82c421d69 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -46,13 +46,25 @@ jobs: asset_path: fluffychat-web.tar.gz asset_name: fluffychat-web.tar.gz asset_content_type: application/gzip - - name: Build Website + - name: Clone fluffychat website run: | - mkdir public + git@github.com:krille-chan/fluffychat-website.git + cp CHANGELOG.md fluffychat-website/ + cp PRIVACY.md fluffychat-website/ + - name: Build website + working-directory: fluffychat-website + run: | + npm install tailwindcss @tailwindcss/cli + npx tailwindcss -i ./src/styles.css -o ./src/assets/tailwind.css --minify + npx @11ty/eleventy + mv public ../ + - name: Copy FluffyChat web into it + run: | + mkdir public/web mkdir public/nightly - cp -r build/web/* public/ + cp -r build/web/* public/web/ cp -r build/web/* public/nightly/ - echo "app.fluffy.chat" >> public/CNAME + echo "fluffychat.im" >> public/CNAME - name: Deploy to GitHub Pages if: startsWith(github.ref, 'refs/tags/v') uses: peaceiris/actions-gh-pages@v4 @@ -60,7 +72,7 @@ jobs: personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }} publish_dir: ./public publish_branch: gh-pages - cname: app.fluffy.chat + cname: fluffychat.im build_apk: runs-on: ubuntu-latest