Skip to content

Commit

Permalink
Merge pull request #138 from uktrade/ci/fix-creating-versioned-source
Browse files Browse the repository at this point in the history
ci: fix creating .tar.gz of source but versioned
  • Loading branch information
michalc authored Aug 10, 2024
2 parents 16b7b5b + 460e421 commit 758d36c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-package-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
# See https://github.com/uktrade/stream-zip/issues/136
- name: Update release to include source code with version
run: |
tar --exclude='./.git' -czvf "${GITHUB_REF_NAME}.tar.gz" .
touch "${GITHUB_REF_NAME}.tar.gz"
tar --exclude='.git' --exclude='${GITHUB_REF_NAME}.tar.gz' -czvf "${GITHUB_REF_NAME}.tar.gz" .
gh release upload "${GITHUB_REF_NAME}" "${GITHUB_REF_NAME}.tar.gz" "Source code (with release version)"
rm "${GITHUB_REF_NAME}.tar.gz"
Expand Down

0 comments on commit 758d36c

Please sign in to comment.