From 88e88fb6b9cb4796fb3462efd4e2bbb6ed445cf6 Mon Sep 17 00:00:00 2001 From: Aine Date: Sat, 31 Aug 2024 20:27:36 +0300 Subject: [PATCH] add CDN --- .github/workflows/workflow.yml | 21 ++++++++++++++++++++- README.md | 6 ++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index c113415..5dbfe86 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -1,10 +1,11 @@ -name: +name: CI on: push: branches: [ "main" ] env: upstream_version: v0.10.3 etke_version: etke1 + bunny_version: v0.1.0 permissions: checks: write contents: write @@ -44,3 +45,21 @@ jobs: push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + + build-deploy: + name: Build and Release + needs: build-publish + runs-on: ubuntu-latest + container: ghcr.io/${{ github.repository }} # as this job depends on the build-publish and build-publish always publishes the latest tag + steps: + - uses: actions/checkout@v4 + - name: Configure + run: | + cp ./config.json /app/config.json + mv /app ./public + - name: Upload + run: | + wget -O bunny-upload.tar.gz https://github.com/etkecc/bunny-upload/releases/download/${{ env.bunny_version }}/bunny-upload_Linux_x86_64.tar.gz + tar -xzf bunny-upload.tar.gz + echo "${{ secrets.BUNNY_CONFIG }}" > bunny-config.yaml + ./bunny-upload -c bunny-config.yaml diff --git a/README.md b/README.md index 5706a2a..8983a91 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,12 @@ This project is built using [react-admin](https://marmelab.com/react-admin/). ## Fork differences +### Available via CDN + +On [admin.etke.cc](https://admin.etke.cc) you can find the latest version of this fork. + +### Changes + With [Awesome-Technologies/synapse-admin](https://github.com/Awesome-Technologies/synapse-admin) as the upstream, this fork is intended to be a more feature-rich version of the original project. The main goal is to provide a more user-friendly interface for managing Synapse homeservers.