Skip to content

Commit

Permalink
create release workflow for windows and macos
Browse files Browse the repository at this point in the history
  • Loading branch information
NoureldinYosri committed Sep 12, 2024
1 parent c1aeb8a commit 11df642
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Pre-release TypedUnits

on:
pull_request:
branches:
- main
push:
branches:
- main
Expand Down Expand Up @@ -28,10 +31,11 @@ jobs:

deploy:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
os: ['ubuntu-latest']

steps:
- uses: actions/checkout@v4
Expand All @@ -42,7 +46,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build auditwheel patchelf
pip install build cibuildwheel
- uses: actions/download-artifact@master
with:
Expand All @@ -52,13 +56,10 @@ jobs:
- name: Build package
run: |
export TypedUnits_RELEASE_VERSION="$(cat version/version.txt)"
python -m build
python -m cibuildwheel --output-dir dist
- name: Repair Wheel
- name: Remove Tar file
run: |
auditwheel repair --plat manylinux2014_x86_64 dist/*.whl
rm dist/*.whl
mv wheelhouse/* dist/
rm dist/*.tar.gz
- name: Publish package to testpypi
Expand All @@ -68,8 +69,8 @@ jobs:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}

- name: Publish package to pypi
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
# - name: Publish package to pypi
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 11df642

Please sign in to comment.