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:
|
2023-09-05 09:23:03 +03:00
|
|
|
- uses: actions/checkout@v4
|
2024-02-02 17:03:17 +03:00
|
|
|
- uses: actions/setup-node@v4
|
2021-08-19 13:12:27 +03:00
|
|
|
with:
|
2024-04-19 10:36:09 +03:00
|
|
|
node-version: "20"
|
2024-02-07 19:36:36 +03:00
|
|
|
- run: yarn install --immutable
|
2021-08-19 13:12:27 +03:00
|
|
|
- run: yarn build
|
|
|
|
- run: |
|
|
|
|
version=`git describe --dirty --tags || echo unknown`
|
2024-04-23 13:18:38 +03:00
|
|
|
cp -r dist synapse-admin-$version
|
2021-08-19 13:12:27 +03:00
|
|
|
tar chvzf dist/synapse-admin-$version.tar.gz synapse-admin-$version
|
2024-07-09 12:12:58 +03:00
|
|
|
- uses: softprops/action-gh-release@a74c6b72af54cfa997e81df42d94703d6313a2d0
|
2021-08-19 13:12:27 +03:00
|
|
|
with:
|
|
|
|
files: dist/*.tar.gz
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|