Fix minor release CD #19
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: CD | |
on: | |
pull_request: | |
branches: | |
# push: | |
# branches: | |
# - main | |
permissions: | |
id-token: write | |
contents: write | |
jobs: | |
release-pypi: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4 | |
- name: Setting up PDM | |
uses: pdm-project/setup-pdm@568ddd69406b30de1774ec0044b73ae06e716aa4 # v4 | |
with: | |
python-version: "3.10" | |
architecture: x64 | |
- name: Setting up nox | |
uses: wntrblm/nox@5656fcedc31a1ea37d016e4d94d00185330cc528 # 2024.04.15 | |
with: | |
python-versions: "3.10" | |
- name: Configure Git Credentials | |
run: | | |
git config user.email "action@github.com" | |
git config user.name "GitHub Action" | |
- name: Bumping version | |
run: | | |
git remote add origin https://github.com/kaiko-ai/eva | |
nox -s bump -- micro | |
git commit -am "Bumping minor version" | |
git push origin main | |
# git fetch origin | |
# - name: Build artifacts | |
# run: | | |
# nox -s build | |
# - name: Test Build | |
# run: | | |
# python -m pip install dist/*.whl | |
# eva --version | |
# - name: Deploy Documentation | |
# run: | | |
# git fetch origin gh-pages:gh-pages | |
# nox -s docs -- deploy --update-aliases main | |
# git push origin gh-pages | |
# - name: Publish package distributions to PyPI | |
# run: nox -s publish -- --no-build | |
# env: | |
# PDM_PUBLISH_USERNAME: ${{ secrets.PYPI_USERNAME }} | |
# PDM_PUBLISH_PASSWORD: ${{ secrets.PYPI_PASSWORD }} |