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-09-05 06:23:03 +00:00
|
|
|
- uses: actions/checkout@v4
|
2024-02-02 14:03:17 +00:00
|
|
|
- uses: actions/setup-node@v4
|
2021-08-19 10:12:27 +00:00
|
|
|
with:
|
2024-04-19 07:36:09 +00:00
|
|
|
node-version: "20"
|
2024-02-07 16:36:36 +00:00
|
|
|
- run: yarn install --immutable
|
2021-08-19 10:12:27 +00:00
|
|
|
- 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
|
2024-04-16 07:19:14 +00:00
|
|
|
- uses: softprops/action-gh-release@3198ee18f814cdf787321b4a32a26ddbf37acc52
|
2021-08-19 10:12:27 +00:00
|
|
|
with:
|
|
|
|
files: dist/*.tar.gz
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|