Skip to content

Prepare version 0.2.0 (#10) #4

Prepare version 0.2.0 (#10)

Prepare version 0.2.0 (#10) #4

Workflow file for this run

name: Release version
on:
push:
tags:
- '*'
jobs:
build-package:
name: Build package for publication
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- name: Install build dependencies
run: pip install -U twine build
- name: Build
run: python -mbuild --wheel --sdist .
- uses: actions/upload-artifact@v4
with:
name: openqasm3_pygments-dist
path: |
./dist/*.whl
./dist/*.tar.gz
deploy-package:
name: Deploy package to PyPI
runs-on: ubuntu-latest
needs: ["build-package"]
environment: release
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
name: openqasm3_pygments-dist
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
- name: Publish to GitHub
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
fail_on_unmatched_files: true
generate_release_notes: true
files: |
./dist/*.whl
./dist/*.tar.gz
deploy-docs:
name: Publish documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13'
- name: Install dependencies
run: python -m pip install --upgrade pip tox
- name: Generate HTML
run: tox -e docs
- name: Deploy HTML documentation
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs/_build/html