forked from intel-analytics/ipex-llm
-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (48 loc) · 1.4 KB
/
bigdl-release-pypi.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
name: BigDL Release Pypi
on:
#pull_request:
workflow_dispatch:
inputs:
version:
description: 'pypi version (e.g. 2.1.0, 2.2.0b20220927)'
required: true
default: '2.1.0'
type: string
env:
PYPI_VERSION: ${{ github.event.inputs.version }}
permissions:
contents: read
packages: write
jobs:
bigdl-release-python-pypi:
runs-on: [self-hosted, ubuntu-20.04-lts, Bree]
if: ${{ github.actor == 'Le-Zheng' }}
steps:
- uses: actions/checkout@v3
- name: Set up JDK8
uses: ./.github/actions/jdk-setup-action
- name: Set up maven
uses: ./.github/actions/maven-setup-action
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install wheel
pip install twine
- name: Build package
run: |
export TIMESTAMP=`date '+%Y%m%d'`
echo ${PYPI_VERSION}
nb_version=${PYPI_VERSION}
#nb_version=${PYPI_VERSION}b${TIMESTAMP}1
echo ${nb_version}
## windows ##
bash python/dev/release_default_windows.sh ${nb_version} false true
## linux ##
bash python/dev/release_default_linux.sh ${nb_version} true
## mac ##
bash python/dev/release_default_mac.sh ${nb_version} true