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
34 changes: 34 additions & 0 deletions .github/workflows/pypi-azure-cli-testsdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Azure CLI Test SDK
on:
workflow_call:
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2.2.2
with:
python-version: 3.7

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine virtualenv pip-tools

cd src/azure-cli-testsdk
python setup.py sdist bdist_wheel

- name: Publish package to https://pypi.org
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}
packages_dir: src/azure-cli-testsdk/dist

- name: Validate Package Installation from PyPi
run: |
pip install --upgrade azure-cli-testsdk
Loading