Skip to content

Commit

Permalink
Merge pull request #7 from ins-amu/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Ziaeemehr authored Feb 17, 2025
2 parents cf33839 + 364531f commit 134463b
Show file tree
Hide file tree
Showing 7 changed files with 379 additions and 431 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish to PyPI

on:
push:
branches:
- main
tags:
- "v*"

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

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

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Compile C++ code
run: |
cd vbi/models/cpp/_src
make
- name: Build package
run: python -m build

- name: Publish to PyPI
if: startsWith(github.ref, 'refs/tags/v')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/*
Loading

0 comments on commit 134463b

Please sign in to comment.