Skip to content

Prepare release v1.8.1 (#184) #19

Prepare release v1.8.1 (#184)

Prepare release v1.8.1 (#184) #19

Workflow file for this run

name: Release Artifacts
on:
push:
tags:
- 'v*'
jobs:
wheel-build:
name: Build and Publish Release Artifacts
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.7.1'
- name: Install release dependencies
run: pip install -U typer mistletoe
- name: Build packages
run: |
poetry build
shell: bash
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: ./dist/qiskit*
- name: Extract changelog
run: python scripts/extract-changelog.py ${{ github.ref_name }} | tee ${{ github.workspace }}-CHANGELOG.txt
- name: Create Github release
uses: softprops/action-gh-release@v1
with:
files: ./dist/qiskit*
body_path: ${{ github.workspace }}-CHANGELOG.txt
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1