From 0a616a7a324986c3d412e2529af2426859b204a6 Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Thu, 24 Jun 2021 16:24:57 +0200 Subject: [PATCH] Create node.js.yml --- .github/workflows/node.js.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..d0ec15b --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,29 @@ +name: Create release tarball and attach to tag + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + + 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 + rm -r synapse-admin-$version + - uses: softprops/action-gh-release@b7e450da2a4b4cb4bfbae528f788167786cfcedf + with: + files: dist/*.tar.gz + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}