Release #2
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
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 |