diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 967b9d4..a25008f 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -67,7 +67,7 @@ jobs: run: hatch run examples:check - name: Check wheels can be built - run: hatch build + run: hatch build && hatch run cicd:clean_dist - name: Run tests (codebase) run: hatch run tests @@ -75,10 +75,6 @@ jobs: - name: Run tests (examples) run: hatch run examples:tests - - uses: actions/upload-artifact@v4 # upload artifacts so they are retained on the job - with: - path: dist - - name: Python Semantic Release id: semantic-release if: ${{ github.ref == 'refs/heads/main' }} @@ -93,3 +89,7 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: dist + + - uses: actions/upload-artifact@v4 # upload artifacts so they are retained on the job + with: + path: dist diff --git a/pyproject.toml b/pyproject.toml index fdc7343..806229a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -116,6 +116,7 @@ dependencies = [ localnet_start = [ "algokit localnet start", ] +clean_dist = "rm -rf dist" # docs environment [tool.hatch.envs.docs]