Skip to content

AIFlow Nightly CD

AIFlow Nightly CD #478

Workflow file for this run

name: AIFlow Nightly CD
on:
workflow_dispatch:
schedule:
- cron: '0 16 * * *'
jobs:
push_to_registry:
name: Nightly build and push packages
if: github.repository == 'flink-extended/ai-flow' # Don't do this in forks
runs-on: ubuntu-latest
steps:
- name: Check out the repo for nightly
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install twine
run: |
python -m pip install --upgrade pip
pip install wheel twine
- name: Set variables
run: |
echo "NIGHTLY_BUILD=true" >> $GITHUB_ENV
- name: Upload notification-service package
run: |
cd lib/notification_service && python3 setup.py sdist bdist_wheel
twine upload --username=${{ secrets.PYPI_REPOSITORY_USERNAME }} --password=${{ secrets.PYPI_REPOSITORY_PASSWORD }} dist/*
- name: Upload ai-flow package
run: |
python3 setup.py sdist bdist_wheel
twine upload --username=${{ secrets.PYPI_REPOSITORY_USERNAME }} --password=${{ secrets.PYPI_REPOSITORY_PASSWORD }} dist/*