Publish Packages #17
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: Publish Packages | |
on: | |
release: | |
types: [released] | |
jobs: | |
tests: | |
name: "Tests" | |
uses: "./.github/workflows/tests.yml" | |
build: | |
needs: [tests] | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
env: | |
PYPI_TOKEN_AUTOVIZWIDGET: ${{ secrets.PYPI_TOKEN_AUTOVIZWIDGET }} | |
PYPI_TOKEN_HDIJUPYTERUTILS: ${{ secrets.PYPI_TOKEN_HDIJUPYTERUTILS }} | |
PYPI_TOKEN_SPARKMAGIC: ${{ secrets.PYPI_TOKEN_SPARKMAGIC }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Setup PyPI | |
run: | | |
cat > ~/.pypirc <<- EOF | |
[distutils] | |
index-servers = | |
pypi | |
pypitest | |
[autovizwidget] | |
username=__token__ | |
password=$PYPI_TOKEN_AUTOVIZWIDGET | |
[hdijupyterutils] | |
username=__token__ | |
password=$PYPI_TOKEN_HDIJUPYTERUTILS | |
[sparkmagic] | |
username=__token__ | |
password=$PYPI_TOKEN_SPARKMAGIC | |
EOF | |
- name: Build hdijupyterutils dist | |
run: | | |
cd hdijupyterutils | |
python setup.py sdist | |
cd .. | |
- name: Publish hdijupyterutils to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN_HDIJUPYTERUTILS }} | |
packages_dir: hdijupyterutils/dist/ | |
verbose: true | |
- name: Build autovizwidget dist | |
run: | | |
cd autovizwidget | |
python setup.py sdist | |
cd .. | |
- name: Publish autovizwidget to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN_AUTOVIZWIDGET }} | |
packages_dir: autovizwidget/dist/ | |
verbose: true | |
- name: Build sparkmagic dist | |
run: | | |
cd sparkmagic | |
python setup.py sdist | |
cd .. | |
- name: Publish sparkmagic to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_TOKEN_SPARKMAGIC }} | |
packages_dir: sparkmagic/dist/ | |
verbose: true |