Skip to content
Open
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
32 changes: 8 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: release
on:
push:
tags: ['v*']
tags: ['v*'] # only version tags

permissions:
contents: read
Expand All @@ -13,44 +13,28 @@ concurrency:

jobs:
ghcr:
name: Publish GHCR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Compute image name (lowercase)

# always lowercase image name
- name: Set image name
shell: bash
run: echo "IMAGE=ghcr.io/${GITHUB_REPOSITORY@L}" >> "$GITHUB_ENV"
run: echo "IMAGE=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_ENV"

- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
push: true
provenance: false
tags: ${{ env.IMAGE }}:latest,${{ env.IMAGE }}:${{ github.ref_name }}

pypi:
name: Publish PyPI (guarded)
if: ${{ secrets.PYPI_API_TOKEN != '' }}
needs: ghcr
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: { python-version: '3.12' }
- name: Build sdist/wheel
run: |
python -m pip install -U pip build
python -m build
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Contributing
- Mantén licencia **MIT** y el archivo `NOTICE`.
- Atribución requerida en forks y publicaciones.
- Commits con Conventional Commits. PRs requieren CI verde.
- Keep the **MIT** license and the `NOTICE` file.
- Attribution is required in forks and publications.
- Use **Conventional Commits**. PRs must have green CI.
6 changes: 3 additions & 3 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Security Policy
- Reporta vulnerabilidades por **GitHub → Security → Private reporting**.
- No abras issues públicos con PoCs explotables.
- SLA objetivo de primera respuesta: 72h.
- Report vulnerabilities via **GitHub → Security → Private reporting**.
- Do not open public issues with exploitable PoCs.
- Target first response SLA: 72h.
Loading