From 0e23ba3812eb6e44975cb59cde83795b10c70dec Mon Sep 17 00:00:00 2001 From: trueold89 Date: Sun, 9 Jun 2024 02:10:37 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20twine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/python-build.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/python-build.yml b/.gitea/workflows/python-build.yml index cf24464..d58381d 100644 --- a/.gitea/workflows/python-build.yml +++ b/.gitea/workflows/python-build.yml @@ -15,21 +15,22 @@ jobs: - name: Create and activate virtual environment run: | python -m venv venv - . venv/bin/activate + source venv/bin/activate - name: Install dependencies run: | source venv/bin/activate pip install --upgrade pip - pip install setuptools discord.py + pip install setuptools discord.py twine - name: Build the package run: | source venv/bin/activate python setup.py sdist - - name: Archive the package - uses: actions/upload-artifact@v3 - with: - name: dist - path: dist/*.tar.gz + - name: Upload package + run: | + source venv/bin/activate + twine upload --repository-url https://git.orudo.ru/api/v1/packages/upload -u trueold89 -p $TOKEN dist/* + env: + TOKEN: ${{ secrets.TOKEN }}