Add Workflow Manager samples #198
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 Test Python Package | |
on: | |
push: | |
paths: | |
- '**.py' | |
branches: | |
- main | |
jobs: | |
deploy-package: | |
runs-on: ubuntu-latest | |
if: "startsWith(github.event.head_commit.message, '[DEPLOY]')" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install setuptools wheel twine | |
- name: Build and publish to test index | |
env: | |
TWINE_USERNAME: ${{ secrets.DEV_PACKAGE_ID }} | |
TWINE_PASSWORD: ${{ secrets.DEV_PACKAGE_SECRET }} | |
run: | | |
python setup.py sdist bdist_wheel | |
twine upload --repository testpypi dist/* |