Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Create Release Artifacts

on:
workflow_dispatch:
push:
tags:
- 'v*' # Trigger on tags like v1.0, v2.0.1, etc.

jobs:
build_and_upload_artifacts:
name: Build and Upload Distribution Artifacts
runs-on: ubuntu-latest
permissions:
contents: read # Needed to checkout the repository

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

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11' # You can specify your desired Python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel

- name: Clean dist directory
run: rm -rf dist
- name: Build distribution archives
run: python -m build --sdist --wheel

- name: Upload distribution artifacts
uses: actions/upload-artifact@v4
with:
name: python-package-distributions
path: dist/
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ project-*.md
.venv
build/
__pycache__/
*.egg-info/
*.egg-info/
dist/
uv.lock
publish.md