Skip to content

use trusted publisher #29

use trusted publisher

use trusted publisher #29

Workflow file for this run

on:
push:
tags:
- '*'
jobs:
Publish:
name: Publish to PyPI
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout Repository
uses: actions/checkout@master
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Update version in pyproject.toml
run: >-
sed -i
"s/^version = \".*\"/version = \"${{ github.ref_name }}\"/"
pyproject.toml
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1