Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Release

on:
push:
branches: [main]
tags: ['v*']
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install build dependencies
run: pip install build

- name: Build wheel
run: python -m build

- name: Test wheel installs and imports
run: |
pip install dist/*.whl
python -c "from truffile import TruffleClient; print('✓ Import OK')"
truffile --help

- name: Upload wheel artifact
uses: actions/upload-artifact@v4
with:
name: truffile-wheel
path: dist/*.whl

- name: Upload sdist artifact
uses: actions/upload-artifact@v4
with:
name: truffile-sdist
path: dist/*.tar.gz

6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.venv/
truffle/
*.egg-info
*.egg-info
__pycache__/
.DS_Store
dist
Loading