2021-08-19 10:12:27 +00:00
|
|
|
name: Create release tarball and attach to tag
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2021-08-26 07:31:19 +00:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
packages: write
|
2021-08-19 10:12:27 +00:00
|
|
|
|
|
|
|
steps:
|
2023-01-16 19:13:25 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-08-19 10:12:27 +00:00
|
|
|
- uses: actions/setup-node@v2
|
|
|
|
with:
|
2022-07-30 11:18:22 +00:00
|
|
|
node-version: "16"
|
2021-08-19 10:12:27 +00: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
|
2023-01-24 08:47:19 +00:00
|
|
|
- uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
|
2021-08-19 10:12:27 +00:00
|
|
|
with:
|
|
|
|
files: dist/*.tar.gz
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|