Skip to content
Closed
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
39 changes: 39 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: publish to pypi

on:
push:
branches:
- release

jobs:
build:
runs-on: ubuntu-latest

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

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

- name: Install uv, twine
run: |
python -m pip install --upgrade pip
pip install uv twine

- name: Clean dist directory
run: rm -rf dist/* || true

- name: Build the package with uv
run: |
uv pip install -e .
uv build

- name: Publish the package to PyPI
env:
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*$py.class
*.so
.venv/
dist/
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "snakemake-logger-plugin-flowo"
version = "0.1.1"
version = "0.1.2"
description = "A Snakemake logger plugin that stores workflow execution data in PostgreSQL"
readme = "README.md"
requires-python = ">=3.12"
Expand Down
Loading