Skip to content

Commit

Permalink
✨ feat: publish wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
jzazo committed Sep 16, 2024
1 parent 467531b commit 003b947
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: build-wheels

on:
workflow_call:

jobs:
build-wheels:
runs-on: ubuntu-latest
name: build-wheels
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install -U pip
pip install -U poetry
- name: build-wheel
run: |
poetry build -f wheel
- name: upload-artifacts
uses: actions/upload-artifact@v4
with:
name: wheels
path: "/dist/*.whl"
7 changes: 7 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ jobs:
pages: write
id-token: write

build-wheels:
uses: ./.github/workflows/build-wheels.yml
secrets: inherit
permissions:
contents: read
actions: write

codeql:
uses: ./.github/workflows/codeql.yml
secrets: inherit
Expand Down

0 comments on commit 003b947

Please sign in to comment.