Skip to content

Commit 2feed91

Browse files
authored
Merge pull request #1900 from polywrap/fix-upload-artifact
fix: cd-source fix upload artifact step
2 parents d4a68b1 + eeeb308 commit 2feed91

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/cd-source.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,18 @@ jobs:
8383
if: env.TAG_EXISTS == 'false'
8484
working-directory: ./packages/cli
8585
run: |
86-
npx pkg --config ./package.json --target=${{ matrix.node-version }} --output ./standalone-binaries/${{ matrix.os }}-${{ matrix.arch }}/polywrap --compress Brotli ./bin/polywrap
86+
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
87+
88+
- name: Extract binary path
89+
if: env.TAG_EXISTS == 'false'
90+
run: echo STANDALONE_BINARY_PATH=$(stat ./packages/cli/standalone-binaries/${{ matrix.ox }}-${{ matrix.arch }}/polywrap* | awk '/File:/ {print $2}') >> $GITHUB_ENV
8791

8892
- name: Upload Artifacts
8993
if: env.TAG_EXISTS == 'false'
9094
uses: actions/upload-artifact@v3
9195
with:
9296
name: cli-binary-${{ matrix.os }}-${{ matrix.arch }}
93-
path: ${{ steps.pkg-action.outputs.file }}
97+
path: ${{ env.STANDALONE_BINARY_PATH }}
9498

9599
Publish-GitHub:
96100
name: Publish source to github.com

0 commit comments

Comments
 (0)