Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/pypi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Publish to PyPI

on:
push:
tags: ["v*"]
workflow_dispatch:

jobs:
release-pypi:
name: Publish to PyPI
runs-on: ubuntu-latest

environment:
name: pypi
url: https://pypi.org/p/dyson-qc
permissions:
id-token: write

steps:
- uses: actions/checkout@v2
- name: Set up python "3.11"
uses: actions/setup-python@v2
with:
python-version: "3.11"
- name: Upgrade pip
run: |
python -m pip install --upgrade pip
- name: Install dyson
run: |
python -m pip install wheel
python -m pip install .[dev]
- name: Build wheel
run: |
python -m build
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true