Skip to content

Commit

Permalink
minor modifications to if conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s committed Aug 29, 2023
1 parent 426c740 commit 4f25327
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/cd-syftcli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ jobs:
- name: upload binaries
uses: actions/upload-artifact@v3
with:
name: syftcli-binaries
path: ./packages/syftcli/dist/cli
name: syftcli-binaries-${{needs.deploy-syft-cli.outputs.deployed_version}}
path: ./packages/syftcli/dist/cli/*
if-no-files-found: error

create-syftcli-github-release:
Expand Down Expand Up @@ -169,24 +169,24 @@ jobs:
fi
- name: Make sure directory exists
if: ${{steps.check-pypi.outputs.released == 'true'}}
if: steps.check-pypi.outputs.released == 'true'
run: |
mkdir -p ./downloaded-binaries
- name: Download binary
if: ${{steps.check-pypi.outputs.released == 'true'}}
if: steps.check-pypi.outputs.released == 'true'
uses: actions/download-artifact@v3
with:
name: syftcli-binaries
name: syftcli-binaries-${{needs.deploy-syft-cli.outputs.deployed_version}}
path: ./downloaded-binaries/

- name: GitHub Release
if: ${{steps.check-pypi.outputs.released == 'true'}}
if: steps.check-pypi.outputs.released == 'true'
uses: softprops/action-gh-release@v1
with:
name: syftcli-v${{ needs.deploy-syft-cli.outputs.deployed_version }}
generate_release_notes: false
prerelease: false
files: |
./packages/syftcli/dist/cli/*
./downloaded-binaries/*
tag_name: syftcli-v${{ needs.deploy-syft-cli.outputs.deployed_version }}

0 comments on commit 4f25327

Please sign in to comment.