2021-08-19 13:12:27 +03:00
|
|
|
name: Create release tarball and attach to tag
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-08-26 10:31:19 +03:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
packages: write
|
2021-08-19 13:12:27 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-07-30 14:18:22 +03:00
|
|
|
node-version: "16"
|
2021-08-19 13:12:27 +03:00
|
|
|
- run: yarn install
|
|
|
|
- run: yarn build
|
|
|
|
- run: |
|
|
|
|
version=`git describe --dirty --tags || echo unknown`
|
|
|
|
mkdir -p dist
|
|
|
|
cp -r build synapse-admin-$version
|
|
|
|
tar chvzf dist/synapse-admin-$version.tar.gz synapse-admin-$version
|
|
|
|
- uses: softprops/action-gh-release@b7e450da2a4b4cb4bfbae528f788167786cfcedf
|
|
|
|
with:
|
|
|
|
files: dist/*.tar.gz
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|