mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2024-11-12 17:54:40 +00:00
881760c8d8
Tags are required to construct the version information. Change-Id: Ic1af3e8f50eafafcc8a0c3ca37f362d6bd05e116
35 lines
860 B
YAML
35 lines
860 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
|
|
with:
|
|
fetch-depth: 100
|
|
fetch-tags: true
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "18"
|
|
- run: yarn install --immutable
|
|
- 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@3198ee18f814cdf787321b4a32a26ddbf37acc52
|
|
with:
|
|
files: dist/*.tar.gz
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|