Skip to content

Commit

Permalink
Use working-directory key and include hidden files
Browse files Browse the repository at this point in the history
So that zip and upload-artifact produce the same result
  • Loading branch information
drewcassidy committed Sep 13, 2024
1 parent 83c4239 commit 0ea8a66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/assemble-release/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ runs:
- name: Assemble Release
id: assemble-release
shell: bash
working-directory: ${{ env.RELEASE_STAGING }}
run: |
cd ${{ env.RELEASE_STAGING }}
zip -r ${{ github.workspace }}/${{ inputs.output-file-name }}.zip .
echo 'ARTIFACT_FILENAME=${{ inputs.output-file-name }}' >> $GITHUB_ENV
echo 'artifact-path=${{ github.workspace }}/${{ inputs.output-file-name }}' >> $GITHUB_OUTPUT
Expand All @@ -65,3 +65,4 @@ runs:
path: ${{ env.RELEASE_STAGING }}
name: ${{ inputs.output-file-name }}
if-no-files-found: error
include-hidden-files: 'true' # behavior changed in 4.4.0. Include hidden for matching the behavior of `zip`

0 comments on commit 0ea8a66

Please sign in to comment.