ci: Only release web on releases and add nightly builds

This commit is contained in:
Krille 2023-12-08 09:14:14 +01:00
commit 07c9b832cb
No known key found for this signature in database
2 changed files with 16 additions and 10 deletions

View file

@ -42,6 +42,20 @@ jobs:
asset_path: fluffychat-web.tar.gz
asset_name: fluffychat-web.tar.gz
asset_content_type: application/gzip
- name: Build Website
run: |
cd docs && npx tailwindcss -o ./tailwind.css --minify && cd ..
mv docs public
mv repo public || true
mv build/web/ public/web
cp public/web -r public/nightly
echo "fluffychat.im" > ./public/CNAME
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
build_apk:
runs-on: ubuntu-latest