Skip to content

CD

CD #12

Workflow file for this run

name: CD
on:
workflow_dispatch:
inputs:
release_version:
description: 'Version number for new release'
required: true
jobs:
CD:
timeout-minutes: 15
runs-on: ubuntu-latest
env:
VERSION: ${{ github.event.inputs.release_version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.13.0-rc.2'
- name: version
run: sed -i "s/__version__ = '.*'/__version__ = '$VERSION'/g" aioddd/__init__.py
- name: deps
run: python3 -m pip install .[dev,deploy]
- name: deploy
env:
TWINE_USERNAME: ${{ secrets.POETRY_HTTP_BASIC_PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.POETRY_HTTP_BASIC_PYPI_PASSWORD }}
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
git commit . -m "release: v${VERSION}"
git push origin main
git tag $VERSION
git push origin $VERSION
python3 run-script deploy