-
Notifications
You must be signed in to change notification settings - Fork 36
38 lines (32 loc) · 1.16 KB
/
ai_flow_cd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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/*