Skip to content

v0.1.1

v0.1.1 #17

Workflow file for this run

name: Upload Python Package
on:
release:
types: [published]
permissions:
contents: read
jobs:
release-build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
- name: Build release distributions
run: |
uv sync
uv build
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists-${{ matrix.python-version }}
path: dist/
pypi-publish:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.13"]
needs:
- release-build
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/project/arepy/
steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists-${{ matrix.python-version }}
path: dist/
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
password: ${{ secrets.PYPI_API_TOKEN }}