mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-12-26 23:13:17 +00:00
1837733e07
Change-Id: I6b77d9942324254b5312d80156f089b183a02201
30 lines
767 B
YAML
30 lines
767 B
YAML
name: Create release tarball and attach to tag
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
packages: write
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
- run: yarn install --immutable
|
|
- run: yarn build
|
|
- run: |
|
|
version=`git describe --dirty --tags || echo unknown`
|
|
cp -r dist synapse-admin-$version
|
|
tar chvzf dist/synapse-admin-$version.tar.gz synapse-admin-$version
|
|
- uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564
|
|
with:
|
|
files: dist/*.tar.gz
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|