From 4c5e17dc9ff66a401874a161a8f3ea3c65904a4d Mon Sep 17 00:00:00 2001 From: Matt Provost Date: Wed, 5 Apr 2023 09:12:19 -0700 Subject: [PATCH] Add build artifacts to release (#636) * Add build artifacts to release Signed-off-by: Matt Provost * Wrap yarn pack into another tarball Signed-off-by: Matt Provost --------- Signed-off-by: Matt Provost --- .github/workflows/release-drafter.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 1e365363d6..cdf9db157c 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -13,8 +13,26 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v3 + with: + node-version-file: '.nvmrc' + registry-url: 'https://registry.npmjs.org' + - name: Setup Yarn + run: | + npm uninstall -g yarn + npm i -g yarn@1.22.10 + yarn install --frozen-lockfile + - name: Generate build + run: | + yarn build + yarn pack --filename oui.tar.gz + mkdir oui && mv oui.tar.gz oui/oui.tar.gz + tar -cvf artifacts.tar.gz oui - name: Release uses: softprops/action-gh-release@v1 with: draft: true - generate_release_notes: true \ No newline at end of file + generate_release_notes: true + files: | + artifacts.tar.gz