mirror of
https://github.com/cyclotruc/gitingest.git
synced 2026-04-28 10:19:31 +00:00
Some checks failed
OSSF Scorecard / Scorecard analysis (push) Has been cancelled
CI / test (macos-latest, 3.10) (push) Has been cancelled
CI / test (macos-latest, 3.11) (push) Has been cancelled
CI / test (macos-latest, 3.12) (push) Has been cancelled
CI / test (macos-latest, 3.13) (push) Has been cancelled
CI / test (macos-latest, 3.8) (push) Has been cancelled
CI / test (macos-latest, 3.9) (push) Has been cancelled
CI / test (ubuntu-latest, 3.10) (push) Has been cancelled
CI / test (ubuntu-latest, 3.11) (push) Has been cancelled
CI / test (ubuntu-latest, 3.12) (push) Has been cancelled
CI / test (ubuntu-latest, 3.13) (push) Has been cancelled
CI / test (ubuntu-latest, 3.8) (push) Has been cancelled
CI / test (ubuntu-latest, 3.9) (push) Has been cancelled
CI / test (windows-latest, 3.10) (push) Has been cancelled
CI / test (windows-latest, 3.11) (push) Has been cancelled
CI / test (windows-latest, 3.12) (push) Has been cancelled
CI / test (windows-latest, 3.13) (push) Has been cancelled
CI / test (windows-latest, 3.8) (push) Has been cancelled
CI / test (windows-latest, 3.9) (push) Has been cancelled
* refactor(build,ci,docker): drop local Tailwind build & Node toolchain * Remove npm ecosystem from Dependabot, workflows and Dockerfile. * Delete package.json, tailwind.config.js and generated CSS sources. * Replace compiled CSS with Tailwind CDN plus inline component layer. * Simplify CI: eliminate frontend build job; Python-only release pipeline. * Shrink Docker image to single Python stage. * Trim .gitignore and CONTRIBUTING docs accordingly. * fix max_file_size limit * fix #375
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
name: Publish to PyPI
|
|
|
|
on:
|
|
release:
|
|
types: [created] # Run when you click “Publish release”
|
|
workflow_dispatch: # ... or run it manually from the Actions tab
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
release-build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python 3.13
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.13"
|
|
cache: pip
|
|
cache-dependency-path: pyproject.toml
|
|
|
|
- name: Build package
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install build twine
|
|
twine check dist/*
|
|
- name: Upload dist artefact
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: dist
|
|
path: dist/
|
|
|
|
# Publish to PyPI (only if “dist/” succeeded)
|
|
pypi-publish:
|
|
needs: release-build
|
|
runs-on: ubuntu-latest
|
|
environment: pypi
|
|
|
|
permissions:
|
|
id-token: write # OIDC token for trusted publishing
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: dist
|
|
path: dist/
|
|
|
|
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
with:
|
|
verbose: true
|