Skip to content

Publish Package to Test PyPi #28

Publish Package to Test PyPi

Publish Package to Test PyPi #28

Workflow file for this run

name: Publish Package to Test PyPi
on:
create:
tags:
- v*
jobs:
build-external-worker-client:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12.0
uses: actions/setup-python@v4
with:
python-version: 3.12.0
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- run: pip install virtualenv
- run: virtualenv venv
- run: source venv/bin/activate
- run: pip install setuptools
- run: python setup.py sdist
working-directory: ./external-worker/
- run: pip wheel --no-deps . -w dist
working-directory: ./external-worker/
- name: Publish package distributions to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: external-worker/dist/
verbose: true
build-robocorp-client:
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12.0
uses: actions/setup-python@v4
with:
python-version: 3.12.0
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- run: pip install virtualenv
- run: virtualenv venv
- run: source venv/bin/activate
- run: pip install setuptools
- run: python setup.py sdist
working-directory: ./robocorp/
- run: pip wheel --no-deps . -w dist
working-directory: ./robocorp/
- name: Publish package distributions to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
packages-dir: robocorp/dist/
verbose: true