Skip to content

Update GitHub Actions workflow for publishing: upgrade actions and se… #5

Update GitHub Actions workflow for publishing: upgrade actions and se…

Update GitHub Actions workflow for publishing: upgrade actions and se… #5

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
environment: pypi-publish
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Build package
run: |
python -m pip install build
python -m build
- name: Create Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1