-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: fix analytical engine CI (#3996)
- Loading branch information
1 parent
d5760e4
commit a662886
Showing
3 changed files
with
28 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,29 @@ jobs: | |
|
||
- name: Build Wheel Package | ||
run: | | ||
# change the version for nightly release | ||
# 0.15.0 -> 0.15.0a20220808 | ||
time=$(date "+%Y%m%d") | ||
version=$(cat ${GITHUB_WORKSPACE}/VERSION) | ||
if [[ "${{ GITHUB.REF }}" == "refs/heads/main" ]]; then | ||
echo "${version}a${time}" > ${GITHUB_WORKSPACE}/VERSION; | ||
fi | ||
cd ${GITHUB_WORKSPACE}/python | ||
python3 setup_gsctl.py bdist_wheel | ||
# move wheels into one folder to upload to PyPI | ||
mkdir ${GITHUB_WORKSPACE}/upload_pypi | ||
mv ${GITHUB_WORKSPACE}/python/dist/*.whl ${GITHUB_WORKSPACE}/upload_pypi/ | ||
cd ${GITHUB_WORKSPACE} | ||
tar -zcf gsctl.tar.gz ${GITHUB_WORKSPACE}/upload_pypi/*.whl | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: gsctl-${{ github.sha }} | ||
path: | | ||
gsctl.tar.gz | ||
retention-days: 5 | ||
|
||
- name: Publish distribution to PyPI | ||
uses: pypa/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters