Skip to content

Commit

Permalink
publish package to AQT package registry (alpine-quantum-technologies/…
Browse files Browse the repository at this point in the history
…qiskit-aqt-provider-rc#9)

* add package upload CI action
  • Loading branch information
wilfried-huss authored and airwoodix committed Feb 23, 2023
1 parent 3b6c53f commit 6ad3e1a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 26 deletions.
46 changes: 24 additions & 22 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,27 @@ on:
tags:
- "*"

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U virtualenv setuptools wheel tox==3.27.1
sudo apt-get install -y graphviz pandoc
- name: Build and publish
env:
encrypted_rclone_key: ${{ secrets.encrypted_rclone_key }}
encrypted_rclone_iv: ${{ secrets.encrypted_rclone_iv }}
run: |
tools/deploy_documentation.sh
# This would deploy documentation on the Qiskit Website

# jobs:
# deploy:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.7.8'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -U virtualenv setuptools wheel tox==3.27.1
# sudo apt-get install -y graphviz pandoc
# - name: Build and publish
# env:
# encrypted_rclone_key: ${{ secrets.encrypted_rclone_key }}
# encrypted_rclone_iv: ${{ secrets.encrypted_rclone_iv }}
# run: |
# tools/deploy_documentation.sh
13 changes: 9 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ jobs:
- uses: actions/upload-artifact@v2
with:
path: ./dist/qiskit*
- name: Publish to PyPi
# - name: Publish to PyPi
# env:
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# TWINE_USERNAME: qiskit
# run: twine upload dist/qiskit*
- name: Publish to AQT Package registry
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
TWINE_USERNAME: qiskit
run: twine upload dist/qiskit*
TWINE_PASSWORD: ${{ secrets.AQT_PACKAGE_REGISTRY_WRITE_TOKEN }}
TWINE_USERNAME: github-pypi-python-packages-upload
run: twine upload --repository-url ${{ secrets.AQT_PACKAGE_REGISTRY_URL }} dist/qiskit*

0 comments on commit 6ad3e1a

Please sign in to comment.