From 42b5a05afb8457e6958c4821f190eaaff7bacf97 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Fri, 28 Jul 2023 14:24:41 +0200 Subject: [PATCH] release-pontos: also create gsa-node-modules release artifact For Gentoo, we ideally want to build the node modules as part of our "emerge" process. That means we do not want to consume the -dist artifact. What we instead want is the gsa source and the contents of the node_modules/ directory. Therefore, add a second release artifact to release-ponto, that only contains the content of the node_modules/ directory. --- .github/workflows/release-pontos.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-pontos.yml b/.github/workflows/release-pontos.yml index 5408c57f4b..21d367ffdb 100644 --- a/.github/workflows/release-pontos.yml +++ b/.github/workflows/release-pontos.yml @@ -81,12 +81,14 @@ jobs: run: yarn install --prefer-offline - name: Build dist files run: yarn build - - name: Create tarball + - name: Create tarballs run: | tar -C build -czvf gsa-dist-${{ needs.release.outputs.release-version }}.tar.gz . - - name: Upload dist file to release + XZ_OPT='-T0 -9' tar -acf gsa-node-modules-${{ needs.release.outputs.release-version }}.tar.xz node_modules + - name: Upload dist files to release run: | gh release upload ${{ needs.release.outputs.git-release-tag }} gsa-dist-${{ needs.release.outputs.release-version }}.tar.gz + gh release upload ${{ needs.release.outputs.git-release-tag }} gsa-node-modules-${{ needs.release.outputs.release-version }}.tar.xz env: GH_TOKEN: ${{ secrets.GREENBONE_BOT_TOKEN }}