-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github actions to sync and release wheel
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Create pypirc. | ||
env: | ||
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
cat > ~/.pypirc <<EOL | ||
[distutils] | ||
index-servers = | ||
pypi | ||
[pypi] | ||
repository = https://upload.pypi.org/legacy/ | ||
username = ${PYPI_USERNAME} | ||
password = ${PYPI_PASSWORD} | ||
EOL | ||
- name: Release. | ||
env: | ||
GITHUB_KEY: ${{ github.token }} | ||
run: | | ||
python script/releasing/releaser.py -n minor -u |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Sync Staging and Master | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
paths: | ||
- evadb/version.py | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Check revision version. | ||
run: | | ||
cmd=$(python -c "from evadb.version import _REVISION; print(_REVISION if 'dev' not in _REVISION else 'skip')") | ||
- name: Sync master and staging. | ||
run: | | ||
if [[ "$cmd" != "skip" ]]; then | ||
git_hash=$(git rev-parse --short "${{ github.sha }}") | ||
git checkout master | ||
git reset --hard $git_hash | ||
git push -f origin master | ||
fi | ||