name: Build Python Package on: push: branches: - main jobs: build: runs-on: python-3.12.3-alpine3.19 steps: - name: Checkout repository uses: actions/checkout@v2 - name: Create and activate virtual environment run: | python -m venv venv source venv/bin/activate - name: Install dependencies run: | source venv/bin/activate pip install --upgrade pip pip install setuptools discord.py twine - name: Build the package run: | source venv/bin/activate python setup.py sdist - name: Upload package run: | source venv/bin/activate twine upload --repository-url https://git.orudo.ru/api/packages/trueold89/pypi -u trueold89 -p $TOKEN dist/* env: TOKEN: ${{ secrets.TOKEN }}