mirror of
https://github.com/Awesome-Technologies/synapse-admin.git
synced 2026-05-29 18:54:33 +00:00
5498a4a41b
* ci: bump NodeJs to v22 (LTS) * fix files * bump edge_ghpage.yaml * bump `@types/node` * fix test
31 lines
767 B
YAML
31 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@v6
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "22"
|
|
- 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@a06a81a03ee405af7f2048a818ed3f03bbf83c7b
|
|
with:
|
|
files: dist/*.tar.gz
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|