Skip to content

Commit

Permalink
fix: don't include root directory when archiving artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman committed Oct 11, 2023
1 parent a0263c6 commit 53c1b8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ jobs:
- name: Compress artifact
if: startsWith(github.ref, 'refs/tags/') || inputs.force_artifact
run: |
cwd=$(pwd)
cd ${{ steps.build.outputs.artifact }} && tar -czvf "$cwd/${{ steps.artifact.outputs.name }}.tar.gz" .
find "${{ steps.build.outputs.artifact }}" -printf "%P\n" | tar -czvf "${{ steps.artifact.outputs.name }}.tar.gz" -C "${{ steps.build.outputs.artifact }}" -T -
- name: Upload artifact
uses: actions/upload-artifact@v3
if: startsWith(github.ref, 'refs/tags/') || inputs.force_artifact
Expand Down

0 comments on commit 53c1b8f

Please sign in to comment.