Skip to content

Commit

Permalink
Exclude cache directory from build
Browse files Browse the repository at this point in the history
  • Loading branch information
kokorin committed Jul 7, 2024
1 parent 60c33fb commit 0dd5428
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ on:
- v*
env:
PIP_CACHE_DIR: .cache/pip
PRE_COMMIT_HOME: .cache/pre-commit
HATCH_CACHE_DIR: .cache/hatch
UV_CACHE_DIR: .cache/uv

HATCH_INDEX_USER: __token__
HATCH_INDEX_REPO: main
Expand All @@ -26,4 +26,5 @@ jobs:
- run: pip install hatch
- run: hatch version
- run: hatch build
- run: ls -lhtr dist
- run: hatch publish
1 change: 1 addition & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ jobs:
- run: pip install hatch
- run: hatch version
- run: hatch build
- run: ls -lhtr dist
- run: hatch publish
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
PIP_CACHE_DIR: .cache/pip
PRE_COMMIT_HOME: .cache/pre-commit
HATCH_CACHE_DIR: .cache/hatch
UV_CACHE_DIR: .cache/uv
jobs:
test:
strategy:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ source = "versioningit"

[tool.hatch.build]
exclude = [
"/.cache",
"/.github",
"/tests",
"/.pre-commit-config.yaml",
Expand Down

0 comments on commit 0dd5428

Please sign in to comment.