Skip to content

v0.10.1

v0.10.1 #48

Workflow file for this run

name: publish package
on:
release:
branches: [main]
types: [published]
workflow_dispatch:
permissions:
id-token: write
attestations: write
jobs:
publish:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
# use fetch --all for setuptools_scm to work
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Build wheel
run: |
# Install dependencies
python -m pip install --upgrade pip twine
# Build wheel
python -m pip wheel -w dist .
# Check distribution
twine check dist/commit_check*
- name: Create attestations
uses: actions/attest-build-provenance@v2
with:
subject-path: "dist/commit_check*"
- name: Publish package to TestPyPI
if: github.event_name == 'workflow_dispatch' && github.repository == 'commit-check/commit-check'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TEST_PYPI_TOKEN }}
run: twine upload --repository testpypi dist/commit_check*
continue-on-error: true
- name: Publish package to PyPI
if: github.event_name != 'workflow_dispatch' && github.repository == 'commit-check/commit-check'
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/commit_check*
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy