Skip to content

Commit 40d0813

Browse files
author
csett86
authored
Add github action that packages a release tarball (#148)
1 parent e6f01f0 commit 40d0813

2 files changed

Lines changed: 42 additions & 4 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Create release tarball and attach to tag
2+
3+
on:
4+
push:
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: "14"
17+
- run: yarn install
18+
- run: yarn build
19+
- run: |
20+
version=`git describe --dirty --tags || echo unknown`
21+
mkdir -p dist
22+
cp -r build synapse-admin-$version
23+
tar chvzf dist/synapse-admin-$version.tar.gz synapse-admin-$version
24+
- uses: softprops/action-gh-release@b7e450da2a4b4cb4bfbae528f788167786cfcedf
25+
with:
26+
files: dist/*.tar.gz
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,23 @@ See also [Synapse administration endpoints](https://matrix-org.github.io/synapse
2121

2222
## Step-By-Step install:
2323

24-
You have two options:
24+
You have three options:
2525

26-
1. Download the source code from github and run using nodejs
27-
2. Run the Docker container
26+
1. Download the tarball and serve with any webserver
27+
2. Download the source code from github and run using nodejs
28+
3. Run the Docker container
2829

2930
Steps for 1):
3031

32+
- make sure you have a webserver installed that can serve static files (any webserver like nginx or apache will do)
33+
- configure a vhost for synapse admin on your webserver
34+
- download the .tar.gz from the latest release: https://github.com/Awesome-Technologies/synapse-admin/releases/latest
35+
- unpack the .tar.gz
36+
- move or symlink the `synapse-admin-x.x.x` into your vhosts root dir
37+
- open the url of the vhost in your browser
38+
39+
Steps for 2):
40+
3141
- make sure you have installed the following: git, yarn, nodejs
3242
- download the source code: `git clone https://github.com/Awesome-Technologies/synapse-admin.git`
3343
- change into downloaded directory: `cd synapse-admin`
@@ -39,7 +49,7 @@ Either you define it at startup (e.g. `REACT_APP_SERVER=https://yourmatrixserver
3949
or by editing it in the [.env](.env) file. See also the
4050
[documentation](https://create-react-app.dev/docs/adding-custom-environment-variables/).
4151

42-
Steps for 2):
52+
Steps for 3):
4353

4454
- run the Docker container from the public docker registry: `docker run -p 8080:80 awesometechnologies/synapse-admin` or use the [docker-compose.yml](docker-compose.yml): `docker-compose up -d`
4555

0 commit comments

Comments
 (0)