-
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.
- Loading branch information
Showing
36 changed files
with
818 additions
and
309 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,43 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_run: | ||
workflows: [Sync Staging and Master] | ||
types: | ||
- completed | ||
branches: | ||
- staging | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: master | ||
- name: Install env. | ||
run: | | ||
python -m venv test_evadb | ||
source test_evadb/bin/activate | ||
pip install --upgrade pip | ||
pip install ".[dev]" | ||
- 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: | | ||
source test_evadb/bin/activate | ||
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,30 @@ | ||
name: Sync Staging and Master | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
paths: | ||
- evadb/version.py | ||
|
||
jobs: | ||
sync: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install env. | ||
run: | | ||
python -m venv test_evadb | ||
source test_evadb/bin/activate | ||
pip install --upgrade pip | ||
pip install ".[dev]" | ||
- name: Check version and sync. | ||
run: | | ||
source test_evadb/bin/activate | ||
cmd=$(python -c "from evadb.version import _REVISION; print(_REVISION if 'dev' not in _REVISION else 'skip')") | ||
if [[ "$cmd" != "skip" ]]; then | ||
git pull | ||
git checkout master | ||
git reset --hard ${{ github.sha }} | ||
git push -f origin master | ||
fi |
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
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
Oops, something went wrong.