From eeeb3085d5bfc0035f1b6de58ccbf73259340b16 Mon Sep 17 00:00:00 2001 From: dOrgJelli Date: Thu, 7 Sep 2023 20:12:29 +0200 Subject: [PATCH] fix: cd-source fix upload artifact step --- .github/workflows/cd-source.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd-source.yaml b/.github/workflows/cd-source.yaml index 37ad9f507..f7ab9f8d4 100644 --- a/.github/workflows/cd-source.yaml +++ b/.github/workflows/cd-source.yaml @@ -83,14 +83,18 @@ jobs: if: env.TAG_EXISTS == 'false' working-directory: ./packages/cli run: | - npx pkg --config ./package.json --target=${{ matrix.node-version }} --output ./standalone-binaries/${{ matrix.os }}-${{ matrix.arch }}/polywrap --compress Brotli ./bin/polywrap + npx pkg --config ./package.json --target=${{ matrix.node-version }}-${{ matrix.os }}-${{ matrix.arch }} --output ./standalone-binaries/${{ matrix.os }}-${{ matrix.arch }}/polywrap --compress Brotli ./bin/polywrap + + - name: Extract binary path + if: env.TAG_EXISTS == 'false' + run: echo STANDALONE_BINARY_PATH=$(stat ./packages/cli/standalone-binaries/${{ matrix.ox }}-${{ matrix.arch }}/polywrap* | awk '/File:/ {print $2}') >> $GITHUB_ENV - name: Upload Artifacts if: env.TAG_EXISTS == 'false' uses: actions/upload-artifact@v3 with: name: cli-binary-${{ matrix.os }}-${{ matrix.arch }} - path: ${{ steps.pkg-action.outputs.file }} + path: ${{ env.STANDALONE_BINARY_PATH }} Publish-GitHub: name: Publish source to github.com