-
Notifications
You must be signed in to change notification settings - Fork 139
61 lines (55 loc) · 1.69 KB
/
deploy-library.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build, Test, and Upload PyPI package
on:
release:
types:
- published
workflow_dispatch:
permissions:
contents: read
# see https://docs.pypi.org/trusted-publishers/
id-token: write
jobs:
build-package:
name: Build Ray data processing libraries
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# for setuptools-scm
fetch-depth: 0
- name: Build Packages for pypi
run: |
make -C data-processing-lib build
make -C data-processing-lib/ray build
make -C data-processing-lib/spark build
publish-test-pypi:
name: Publish packages to test.pypi.org
# disabled
if: false
runs-on: ubuntu-latest
needs: build-package
steps:
- name: Fetch build artifacts
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Upload to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
publish-pypi:
name: Publish release to pypi.org
runs-on: ubuntu-latest
needs: build-package
# disabled as of now
if: false
steps:
- name: Fetch build artifacts
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1