fixing publish indentation

This commit is contained in:
Andy Pack 2025-02-18 18:50:31 +00:00
parent 2628571717
commit 96c40481c0
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7

@ -266,31 +266,31 @@ jobs:
command: publish command: publish
args: --package finlib args: --package finlib
publishPy: publishPy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Publish Python Library name: Publish Python Library
needs: [ buildPy ] # for ignoring bad builds needs: [ buildPy ] # for ignoring bad builds
if: github.event_name == 'push' && github.ref == 'refs/heads/master' if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install Rust - name: Install Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
toolchain: stable toolchain: stable
- name: Install Python 3 - name: Install Python 3
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: ${{ env.python-version }} python-version: ${{ env.python-version }}
- name: Install Maturin - name: Install Maturin
working-directory: ./pyfinlib working-directory: ./pyfinlib
run: python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt run: python3 -m venv .venv && source .venv/bin/activate && pip3 install -r requirements.txt
- name: Publish - name: Publish
working-directory: ./pyfinlib working-directory: ./pyfinlib
run: source .venv/bin/activate && maturin publish run: source .venv/bin/activate && maturin publish
env: env:
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}