Skip to content

πŸ§‘β€πŸ’» (project): Added release-tag command #17

πŸ§‘β€πŸ’» (project): Added release-tag command

πŸ§‘β€πŸ’» (project): Added release-tag command #17

Workflow file for this run

name: Project Release Deployment
on:
push:
tags:
- "v*"
concurrency:
group: release-deploy
permissions:
contents: write
jobs:
build:
name: Build wheel and source distribution
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python runtime
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Ensure latest pip
run: python -m pip install --upgrade pip
- name: Install Hatch
run: pip install --upgrade hatch
- name: Build documentation
run: hatch build
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: python-artifacts
path: dist/*
if-no-files-found: error
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
needs:
- build
environment:
name: pypi
url: https://pypi.org/p/meringue
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: python-artifacts
path: dist
- name: Publish package distributions to PyPI
uses: pypa/[email protected]