Skip to content

Commit

Permalink
ci: release process now includes a file with the source, but modified…
Browse files Browse the repository at this point in the history
… with correct version

From #136, this makes it a touch
easier/more robust to package for Debian
  • Loading branch information
michalc committed Aug 10, 2024
1 parent e60ec13 commit 9296607
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/deploy-package-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-python@v3
with:
Expand All @@ -18,6 +18,14 @@ jobs:
run: >-
sed -i "s/0\\.0\\.0\\.dev0/${GITHUB_REF/refs\/tags\/v/}/g" pyproject.toml
# This makes it a touch easier/more robust to package for Debian
# 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" .
gh release upload "${GITHUB_REF_NAME}" "${GITHUB_REF_NAME}.tar.gz" "Source code (with release version)"
rm "${GITHUB_REF_NAME}.tar.gz"
- run: |
pip install build
python -m build
Expand Down

0 comments on commit 9296607

Please sign in to comment.