mirror of
https://github.com/Awesome-Technologies/synapse-admin.git
synced 2024-10-31 06:55:15 +03:00
6c4ff6c791
Change-Id: Ie7db1e7410bbc1c0fccbc2d00119363629e10f22
31 lines
780 B
YAML
31 lines
780 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@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: "14"
|
|
- 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
|
|
- uses: softprops/action-gh-release@b7e450da2a4b4cb4bfbae528f788167786cfcedf
|
|
with:
|
|
files: dist/*.tar.gz
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|