Skip to content

Commit

Permalink
Add: Also create gsa-node-modules release artifact
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Flowdalic authored and bjoernricks committed Aug 4, 2023
1 parent f74b421 commit 911c722
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release-pontos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ 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-dist-${{ needs.release.outputs.release-version }}.tar.gz gsa-node-modules-${{ needs.release.outputs.release-version }}.tar.xz
env:
GH_TOKEN: ${{ secrets.GREENBONE_BOT_TOKEN }}

Expand Down

0 comments on commit 911c722

Please sign in to comment.