Skip to content

Commit

Permalink
ci: use build pkg for build
Browse files Browse the repository at this point in the history
  • Loading branch information
k4black committed May 14, 2024
1 parent 278f0eb commit 7b93122
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ jobs:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Build wheel
run: python -m pip wheel --no-deps --wheel-dir ./dist .
run: |
python3 -m pip install --upgrade build
python3 -m build --wheel --outdir ./dist .
- uses: pypa/gh-action-pypi-publish@release/v1

sync-to-hf-hub:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build wheel
run: python -m pip wheel --no-deps --wheel-dir ./dist .
run: |
python3 -m pip install --upgrade build
python3 -m build --wheel --outdir ./dist .
- name: Show dist files
run: ls -lah ./dist
shell: bash
Expand Down

0 comments on commit 7b93122

Please sign in to comment.