Skip to content

Commit

Permalink
Merge pull request #1900 from polywrap/fix-upload-artifact
Browse files Browse the repository at this point in the history
fix: cd-source fix upload artifact step
  • Loading branch information
dOrgJelli authored Sep 7, 2023
2 parents d4a68b1 + eeeb308 commit 2feed91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/cd-source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2feed91

Please sign in to comment.