Compare commits

3 Commits

Author SHA1 Message Date
Georg K
1f2ac30106 fix: on tags
Some checks failed
Release / Distribution (push) Failing after 8s
2024-12-28 02:28:04 +03:00
Georg K
483b457b14 fix: on tags
Some checks failed
Release / Distribution (push) Failing after 8s
2024-12-28 02:25:50 +03:00
Georg K
3126c2fd2e fix: update deploy
Some checks failed
Release / Distribution (push) Failing after 33s
2024-12-28 02:22:32 +03:00

View File

@@ -0,0 +1,26 @@
name: Release
run-name: ${{ gitea.actor }} is runs ci pipeline
on:
push:
tags:
- 'v*.*.*'
jobs:
packaging:
name: Distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Set version
run: export UPLOAD_VERSION=${{ gitea.ref_name }}
- name: Update version
run: sed -i -e "s/1.12.1/${UPLOAD_VERSION:1}/g" aiohttp_pydantic/__init__.py
- name: Install invoke
run: python -m pip install setuptools wheel invoke
- name: Push to PyPi
run: invoke upload --pypi-user ${{ secrets.REPO_USER }} --pypi-password ${{ secrets.REPO_PASS }} --pypi-url https://git.ahax86.ru/api/packages/pub/pypi