Skip to content

CSV Editor v1.0.1

CSV Editor v1.0.1 #1

Workflow file for this run

name: Publish to GitHub Packages
on:
release:
types: [published]
workflow_dispatch: # Allow manual triggering
jobs:
publish-github:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Set up Python
run: uv python install 3.11
- name: Install dependencies
run: uv sync --dev
- name: Build package
run: uv build
- name: Check package
run: uv run twine check dist/*
- name: Publish to GitHub Packages
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: |
# Configure for GitHub Packages
echo "Publishing to GitHub Packages..."
uv run twine upload --repository-url https://upload.pypi.org/legacy/ dist/*
- name: Create GitHub Release Assets
uses: softprops/action-gh-release@v1
if: github.event_name == 'release'
with:
files: |
dist/*.whl
dist/*.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}