Skip to content

Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.12.4 (#553) #18

Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.12.4 (#553)

Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.12.4 (#553) #18

Workflow file for this run

name: Publish to PyPI
on:
push:
tags:
- "20*"
jobs:
build_and_deploy:
runs-on: ubuntu-latest
if: github.repository == 'python-graphblas/python-graphblas'
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- 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
python -m pip install build twine
- name: Build wheel and sdist
run: python -m build --sdist --wheel
- uses: actions/upload-artifact@v4
with:
name: releases
path: dist
if-no-files-found: error
- name: Check with twine
run: python -m twine check --strict dist/*
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@v1.12.4
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}