-
Notifications
You must be signed in to change notification settings - Fork 214
40 lines (34 loc) · 1.17 KB
/
pypi-nightly-publish.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
39
40
name: Nv-Ingest Nightly PyPi Wheel Publish
# Trigger for pull requests and pushing to main
on:
schedule:
# Runs every day at 11:30PM (UTC)
- cron: "30 23 * * *"
push:
branches:
- main
jobs:
build:
runs-on: linux-large-disk
container:
image: rapidsai/ci-conda:cuda12.5.1-ubuntu22.04-py3.10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install build dependencies
run: |
pip install build twine
- name: Build nv-ingest-api wheel
run: |
cd api && python -m build
- name: Build nv-ingest-client wheel
run: |
cd client && python -m build
- name: Publish wheels to Artifactory
env:
ARTIFACTORY_URL: ${{ secrets.ARTIFACTORY_URL }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
run: |
twine upload --repository-url $ARTIFACTORY_URL -u $ARTIFACTORY_USERNAME -p $ARTIFACTORY_PASSWORD api/dist/* \
&& twine upload --repository-url $ARTIFACTORY_URL -u $ARTIFACTORY_USERNAME -p $ARTIFACTORY_PASSWORD client/dist/*