Publish rffickle to PyPI #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish rffickle to PyPI | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
id-token: write | |
jobs: | |
publish-release: | |
name: Publish Release Package | |
runs-on: ubuntu-latest | |
environment: | |
name: release | |
url: https://pypi.org/project/rffickle/ | |
timeout-minutes: 10 | |
steps: | |
- name: 📥 Checkout the repository | |
uses: actions/checkout@v4 | |
- name: 🐍 Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: 📦 Install build dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install build twine | |
- name: 🏗️ Build source and wheel distributions | |
run: | | |
python -m build | |
twine check --strict dist/* | |
- name: 🚀 Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
attestations: true |