Skip to content

Commit

Permalink
feat: add condition to last step
Browse files Browse the repository at this point in the history
  • Loading branch information
rutesantos4 committed Sep 24, 2023
1 parent ae3258b commit 64c3d1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ jobs:
run: |
echo "${{ steps.changesets.outputs }}"
- name: Zip dist file
- name: Zip dist folder
id: zip-folder
if: steps.changesets.outputs.published == 'true'
uses: vimtor/action-zip@v1
with:
files: dist
dest: dist.zip

- name: After Zipping dist file
- name: After Zipping dist folder
if: steps.zip-folder.outcome == 'success'
uses: actions/upload-artifact@v1
with:
name: my-artifact
Expand Down

0 comments on commit 64c3d1a

Please sign in to comment.