Prepare release 1.8.0 (#182) #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |