Skip to content

Adding apple silicon to build #26

Adding apple silicon to build

Adding apple silicon to build #26

Workflow file for this run

name: Build and Publish Python Package
on:
release:
types: [published]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Change to sagepy directory
run: cd sagepy
- name: Build package
run: |
cd sagepy
poetry build
- name: Publish package
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.SAGEPY_PYPI_API_TOKEN }}
run: |
cd sagepy
poetry config http-basic.pypi __token__ $POETRY_PYPI_TOKEN_PYPI
poetry publish