Skip to content

feat: add support for some unnecessary semicolons #23

feat: add support for some unnecessary semicolons

feat: add support for some unnecessary semicolons #23

Workflow file for this run

---
name: Build
on: [push, pull_request]
jobs:
build_sdist:
name: Build sdist
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install pypa build
run: "python -m pip install build"
- name: Build sdist
run: "python -m build -s && ls -l dist"
- uses: actions/upload-artifact@v4
with:
name: artifacts-sdist
path: ./dist/*.tar.gz
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-13, macos-14]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.19.2
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: artifacts-${{ matrix.os }}
path: ./wheelhouse/*.whl
upload:
name: Upload to PyPI
environment: release
needs: [build_wheels, build_sdist]
runs-on: ubuntu-22.04
if: github.repository == 'acristoffers/tree-sitter-matlab' && github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
pattern: artifacts-*
path: dist
merge-multiple: true
- uses: pypa/gh-action-pypi-publish@release/v1