Put version into the manifest.json on CI builds (Docker, CDN, etc.)

This commit fixes the https://github.com/Awesome-Technologies/synapse-admin/issues/507 issue.
While it's a mere workaround, it may help until the
https://github.com/Awesome-Technologies/synapse-admin/issues/507#issuecomment-2063845882 is implemented
This commit is contained in:
Aine 2024-09-06 00:15:00 +03:00
parent 01e3947b22
commit 1474b46ff0
No known key found for this signature in database
GPG key ID: 34969C908CCA2804
2 changed files with 4 additions and 1 deletions

View file

@ -4,7 +4,7 @@ on:
branches: [ "main" ]
env:
upstream_version: v0.10.3
etke_version: etke10
etke_version: etke11
bunny_version: v0.1.0
base_path: ./
permissions:
@ -26,6 +26,8 @@ jobs:
cache: yarn
- name: Install dependencies
run: yarn install --immutable --network-timeout=300000
- name: Set version into manifest.json
run: sed -i 's|"icons"|"version": "${{ env.upstream_version }}-${{ env.etke_version }}",\n "icons"|g' public/manifest.json
- name: Build
run: yarn build --base=${{ env.base_path }}
- uses: actions/upload-artifact@v4

View file

@ -33,6 +33,7 @@ The following changes are already implemented:
* [Fix redirect URL after user creation](https://github.com/etkecc/synapse-admin/pull/16)
* [Display actual Synapse errors](https://github.com/etkecc/synapse-admin/pull/17)
* [Fix base_url being undefined on unsuccessful login](https://github.com/etkecc/synapse-admin/pull/18)
* [Put the version into manifest.json](https://github.com/Awesome-Technologies/synapse-admin/issues/507) (CI only)
_the list will be updated as new changes are added_