Skip to content

Commit

Permalink
Add wheel (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimdwkimdw authored Jul 31, 2024
1 parent 8a8e976 commit 6bf6d5b
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build

on:
push:
tags:
- v*

jobs:
build_dist:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Build dist and wheel
run: pipx run build --sdist --wheel

- uses: actions/upload-artifact@v4
with:
name: cibw-dist
path: dist/*

# upload_pypi:
# needs: [build_dist]
# runs-on: [self-hosted, linux, x64, cpu-only]
# environment: release
# permissions:
# id-token: write
# steps:
# - uses: actions/download-artifact@v4
# with:
# pattern: cibw-*
# path: dist
# merge-multiple: true

# - uses: pypa/gh-action-pypi-publish@release/v1

upload_release:
needs: [build_dist]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
merge-multiple: true

- name: Release
uses: softprops/action-gh-release@v1
with:
files: dist/*

0 comments on commit 6bf6d5b

Please sign in to comment.